Skip to content

Commit

Permalink
doc: updated open api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ohager committed Jan 3, 2024
1 parent b41244b commit e1c28e4
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 5 deletions.
2 changes: 1 addition & 1 deletion html/api-doc/signum-api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openapi/dist/signum-api.json

Large diffs are not rendered by default.

42 changes: 40 additions & 2 deletions openapi/paths/getters/getAccountTransactionIds.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"get": {
"summary": "Get Account Transaction Ids",
"description": "Get account transaction identifiers.",
"description": "Get account transaction identifiers by different filters.<br/>You can either search for all transactions (incoming and outgoing) per account, or you can selectively filter by sender and/or recipient only.",
"tags": [
"payment",
"alias",
Expand All @@ -12,7 +12,31 @@
],
"parameters": [
{
"$ref": "../../parameters/account/account.json"
"name": "account",
"in": "query",
"allowEmptyValue": true,
"description": "The account identifier. It is only required when `sender` and `recipient` are not provided.",
"schema": {
"$ref": "../../schemas/address.json"
}
},
{
"name": "sender",
"description": "The senders identifier for wanted transactions.<br/>When used `sender` the `account` parameter is ignored. Together with this parameter, the `bidirectional` parameter applies.",
"in": "query",
"allowEmptyValue": true,
"schema": {
"$ref": "../../schemas/address.json"
}
},
{
"name": "recipient",
"description": "The recipient identifier for wanted transactions.<br/>When used `recipient` the `account` parameter is ignored. Together with this parameter, the `bidirectional` parameter applies.",
"in": "query",
"allowEmptyValue": true,
"schema": {
"$ref": "../../schemas/address.json"
}
},
{
"$ref": "../../parameters/timestamp.json"
Expand Down Expand Up @@ -53,6 +77,20 @@
"in": "query",
"schema": {
"type": "boolean",
"default": false,
"example": [
true,
false
]
}
},
{
"name": "bidirectional",
"description": "When set true, all transactions between `sender` and `recipient` are returned. When set false, only transactions from `sender` and optionally to `recipient` are returned. This applies only if either `sender` and/or `recipient` are provided.",
"in": "query",
"schema": {
"type": "boolean",
"default": false,
"example": [
true,
false
Expand Down
40 changes: 39 additions & 1 deletion openapi/paths/getters/getAccountTransactions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,31 @@
],
"parameters": [
{
"$ref": "../../parameters/account/account.json"
"name": "account",
"in": "query",
"allowEmptyValue": true,
"description": "The account identifier. It is only required when `sender` and `recipient` are not provided.",
"schema": {
"$ref": "../../schemas/address.json"
}
},
{
"name": "sender",
"description": "The senders identifier for wanted transactions.<br/>When used `sender` the `account` parameter is ignored. Together with this parameter, the `bidirectional` parameter applies.",
"in": "query",
"allowEmptyValue": true,
"schema": {
"$ref": "../../schemas/address.json"
}
},
{
"name": "recipient",
"description": "The recipient identifier for wanted transactions.<br/>When used `recipient` the `account` parameter is ignored. Together with this parameter, the `bidirectional` parameter applies.",
"in": "query",
"allowEmptyValue": true,
"schema": {
"$ref": "../../schemas/address.json"
}
},
{
"$ref": "../../parameters/timestamp.json"
Expand Down Expand Up @@ -53,6 +77,20 @@
"in": "query",
"schema": {
"type": "boolean",
"default": false,
"example": [
true,
false
]
}
},
{
"name": "bidirectional",
"description": "When set true, all transactions between `sender` and `recipient` are returned. When set false, only transactions from `sender` and optionally to `recipient` are returned. This applies only if either `sender` and/or `recipient` are provided.",
"in": "query",
"schema": {
"type": "boolean",
"default": false,
"example": [
true,
false
Expand Down

0 comments on commit e1c28e4

Please sign in to comment.