Skip to content

Commit

Permalink
Merge pull request #669 from lightninglabs/getinfo-rest-get
Browse files Browse the repository at this point in the history
taprpc: change getinfo REST endpoint from POST to GET
  • Loading branch information
dstadulis authored Nov 15, 2023
2 parents 42683fb + 4d2b69a commit d6dd7d0
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 d6dd7d0

Please sign in to comment.