Skip to content

Commit

Permalink
taprpc: change getinfo REST endpoint from POST to GET
Browse files Browse the repository at this point in the history
The getinfo REST endpoint should be a GET not a POST. This commit is a
fix which ensures that that is the case.
  • Loading branch information
ffranr committed Nov 14, 2023
1 parent fec4a40 commit 4d2b69a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 34 deletions.
20 changes: 2 additions & 18 deletions taprpc/taprootassets.pb.gw.go

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

15 changes: 1 addition & 14 deletions taprpc/taprootassets.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@
}
},
"/v1/taproot-assets/getinfo": {
"post": {
"get": {
"summary": "tapcli: `getinfo`\nGetInfo returns the information for the node.",
"operationId": "TaprootAssets_GetInfo",
"responses": {
Expand All @@ -539,16 +539,6 @@
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/taprpcGetInfoRequest"
}
}
],
"tags": [
"TaprootAssets"
]
Expand Down Expand Up @@ -1490,9 +1480,6 @@
}
}
},
"taprpcGetInfoRequest": {
"type": "object"
},
"taprpcGetInfoResponse": {
"type": "object",
"properties": {
Expand Down
3 changes: 1 addition & 2 deletions taprpc/taprootassets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ http:
body: "*"

- selector: taprpc.TaprootAssets.GetInfo
post: "/v1/taproot-assets/getinfo"
body: "*"
get: "/v1/taproot-assets/getinfo"

- selector: taprpc.TaprootAssets.QueryAddrs
get: "/v1/taproot-assets/addrs"
Expand Down

0 comments on commit 4d2b69a

Please sign in to comment.