forked from IntersectMBO/cardano-node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yaml
56 lines (51 loc) · 1.55 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
swagger: '2.0'
schemes: ["http"]
host: localhost
basePath: /
info:
title: cardano-submit-api
version: 3.1.0
license:
name: Apache-2.0
url: https://github.com/input-output-hk/cardano-rest/blob/master/submit-api/LICENSE
description: |
<p align="right"><img style="position: relative; top: -10em; margin-bottom: -12em;" width="20%" src="https://cardanodocs.com/img/cardano.png"></img></p>
x-tagGroups: []
definitions: {}
paths:
/api/submit/tx:
post:
operationId: postTransaction
summary: Submit Tx
description: Submit an already serialized transaction to the network.
parameters:
- in: header
name: Content-Type
required: true
type: string
enum: ["application/cbor"]
x-code-samples:
- lang: "Shell"
label: "cURL"
source: |
# Assuming `data` is a raw binary serialized transaction on the file-system.
curl -X POST \
--header "Content-Type: application/cbor" \
--data-binary @data http://localhost:8101/api/submit/tx
produces:
- "application/json"
responses:
202:
description: Ok
schema:
description: The transaction id.
type: string
format: hex
minLength: 64
maxLength: 64
example: 92bcd06b25dfbd89b578d536b4d3b7dd269b7c2aa206ed518012cffe0444d67f
400:
description: Bad Request
schema:
type: string
description: An error message.