walletrpc: add missing REST body annotation

The missing body annotation caused the library to ignore any parameters
sent to this RPC endpoint when using the REST proxy.
This commit is contained in:
Oliver Gugger committed 2021-07-27 12:59:55 +02:00
1 parent 36a316e29a
commit 62888894d2
3 files changed
+39 -8

No files matched your search

+29
View File
@@ -533,6 +533,16 @@
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/walletrpcListUnspentRequest"
}
}
],
"tags": [
"WalletKit"
]
@@ -1212,6 +1222,25 @@
}
}
},
"walletrpcListUnspentRequest": {
"type": "object",
"properties": {
"min_confs": {
"type": "integer",
"format": "int32",
"description": "The minimum number of confirmations to be included."
},
"max_confs": {
"type": "integer",
"format": "int32",
"description": "The maximum number of confirmations to be included."
},
"account": {
"type": "string",
"description": "An optional filter to only include outputs belonging to an account."
}
}
},
"walletrpcListUnspentResponse": {
"type": "object",
"properties": {