lnrpc: split REST annotations into service files

As a preparation for the migration to the grpc-gateway/v2 library we
declare each service's REST annotations in its own file. This is
optional in the v1 library but mandatory in v2.
This commit is contained in:
Oliver Gugger committed 2021-07-27 12:59:52 +02:00
1 parent d3973c9b49
commit 4a0025c1b7
15 files changed
+381 -343

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
type: google.api.Service
config_version: 3
http:
rules:
- selector: wtclientrpc.WatchtowerClient.AddTower
post: "/v2/watchtower/client"
body: "*"
- selector: wtclientrpc.WatchtowerClient.RemoveTower
delete: "/v2/watchtower/client/{pubkey}"
- selector: wtclientrpc.WatchtowerClient.ListTowers
get: "/v2/watchtower/client"
- selector: wtclientrpc.WatchtowerClient.GetTowerInfo
get: "/v2/watchtower/client/info/{pubkey}"
- selector: wtclientrpc.WatchtowerClient.Stats
get: "/v2/watchtower/client/stats"
- selector: wtclientrpc.WatchtowerClient.Policy
get: "/v2/watchtower/client/policy"