Skip to content
Draft
Show file tree
Hide file tree
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
27 changes: 25 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1074,12 +1074,16 @@ paths:
$ref: "#/components/schemas/ApplicationError"
example: {type: "VALIDATION_ERROR", message: "Invalid request data."}
"404":
description: Channel not found
description: Channel or wallet not found
content:
application/json:
schema:
$ref: "#/components/schemas/ApplicationError"
example: {type: "NOT_FOUND", message: "The requested channel was not found."}
examples:
channelNotFound:
value: {type: "NOT_FOUND", code: "CHANNEL_NOT_FOUND", message: "channel with ID abc not found"}
walletNotFound:
value: {type: "NOT_FOUND", code: "WALLET_NOT_FOUND", message: "wallet with address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e and chain_selector 16015286601757825753 not found"}
"500":
description: Internal server error
content:
Expand Down Expand Up @@ -2076,6 +2080,22 @@ components:
- to
- value
- data
ApplicationErrorCode:
type: string
description: Machine-readable error code for NOT_FOUND responses.
enum:
- CHANNEL_NOT_FOUND
- WALLET_NOT_FOUND
- OPERATION_NOT_FOUND
- WATCHER_NOT_FOUND
- QUERY_NOT_FOUND
x-enum-varnames:
- ApplicationErrorCodeChannelNotFound
- ApplicationErrorCodeWalletNotFound
- ApplicationErrorCodeOperationNotFound
- ApplicationErrorCodeWatcherNotFound
- ApplicationErrorCodeQueryNotFound
example: "WALLET_NOT_FOUND"
ApplicationError:
description: Standard error response body.
type: object
Expand All @@ -2089,6 +2109,9 @@ components:
- "VALIDATION_ERROR"
- "CONFLICT"
- "INTERNAL_ERROR"
code:
$ref: "#/components/schemas/ApplicationErrorCode"
description: Machine-readable error code. Present on NOT_FOUND responses for tenant resources.
message:
type: string
description: Error message describing the issue
Expand Down
15 changes: 15 additions & 0 deletions client/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions ginserver/ginserver.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions stdserver/stdserver.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading