Skip to content

Commit

Permalink
swagger clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed May 11, 2021
1 parent 621c001 commit bc5df64
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions specifications/api/swagger.yaml
Expand Up @@ -1902,8 +1902,6 @@ components:

x-txBody: &txBody
oneOf:
# - <<: *ApiTransaction
# title: Object
- <<: *serializedHex
title: Serialized transaction body

Expand Down Expand Up @@ -2479,22 +2477,11 @@ components:
passphrase:
<<: *lenientPassphrase
description: The wallet's master passphrase.
- oneOf:
- type: object
required:
- tx
properties:
tx:
oneOf:
# - <<: *ApiSignedTransaction
# title: Object
- type: string
format: hex
- type: object
required:
- tx_body
properties:
tx_body: *txBody
- type: object
required:
- tx_body
properties:
tx_body: *txBody

# ADP-908 Deprecated
ApiPostTransactionDataByron: &ApiPostTransactionDataByron
Expand Down Expand Up @@ -4435,7 +4422,7 @@ paths:
tags: ["Transactions"]
summary: Sign
description: |
<p align="right">status: <strong>stable</strong></p>
<p align="right">status: <strong>under development</strong></p>
Sign a transaction body and return the full transaction. That
is, create witnesses using the keys available to this wallet
Expand Down Expand Up @@ -5223,18 +5210,16 @@ paths:
tags: ["Transactions"]
summary: Submit Transaction
description: |
<p align="right">status: <strong>stable</strong></p>
<p align="right">status: <strong>under development</strong></p>
Submits a signed and encoded transaction to the Cardano
network.
requestBody:
content:
application/json:
schema: *ApiSignedTransaction
# application/cbor+cardano-tx:
application/octet-stream:
schema: *signedTransactionBlob
# TODO: ADP-902 json-encoded variants
responses: *responsesPostSignedTransaction

/proxy/transactions:
Expand All @@ -5247,7 +5232,7 @@ paths:
Submits a transaction that was created and signed outside of cardano-wallet.
NOTE: Unlike the postTransaction endpoint, there are no
NOTE: Unlike the postSignedTransaction endpoint, there are no
guarantees that a transaction accepted by this endpoint will
actually be included in the chain. It's up to the caller to
retry submission until the transaction is confirmed.
Expand Down

0 comments on commit bc5df64

Please sign in to comment.