Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor OpenAPI spec for async-txsub endpoint #5300

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions services/horizon/internal/httpx/static/txsub_async_oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ paths:
hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165"

'400':
description: Transaction is malformed; transaction submission exception; transaction submission failed; invalid submission status from core; ERROR status from core.
description: Transaction is malformed; ERROR status from core.
content:
application/json:
schema:
Expand All @@ -55,7 +55,7 @@ paths:
errorResultXdr: "AAAAAAAAAGT////7AAAAAA=="
tx_status: "ERROR"
hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165"
'405':
'403':
aditya1702 marked this conversation as resolved.
Show resolved Hide resolved
description: Transaction submission has been disabled for Horizon.
content:
application/json:
Expand All @@ -77,12 +77,11 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/AsyncTransactionSubmissionResponse'
example:
errorResultXdr: ""
example:
tx_status: "DUPLICATE"
hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165"
'500':
description: Transaction is a duplicate of a previously submitted transaction.
description: Transaction submission failure, exception or invalid status from core.
content:
application/json:
schema:
Expand All @@ -108,6 +107,16 @@ paths:
extras:
envelope_xdr: ""
error: "Exception details here"
TransactionInvalidStatusExample:
summary: Transaction Submission Invalid Status
value:
type: "transaction_submission_invalid_status"
title: "Transaction Submission Invalid Status"
status: 500
detail: "Received invalid status from stellar-core. The `extras.error` field on this response contains further details. Descriptions of each code can be found at: https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-submission-async/transaction_submission_invalid_status"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Page not found !! is this link still working?

extras:
envelope_xdr: ""
error: "Error details here"
'503':
description: History DB is stale; core is unavailable for transaction submission.
content:
Expand Down
Loading