lnd/lnrpc/invoicesrpc/invoices.yaml
Oliver Gugger 4a0025c1b7
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.
2021-07-27 12:59:52 +02:00

17 lines
466 B
YAML

type: google.api.Service
config_version: 3
http:
rules:
- selector: invoicesrpc.Invoices.SubscribeSingleInvoice
get: "/v2/invoices/subscribe/{r_hash}"
- selector: invoicesrpc.Invoices.CancelInvoice
post: "/v2/invoices/cancel"
body: "*"
- selector: invoicesrpc.Invoices.AddHoldInvoice
post: "/v2/invoices/hodl"
body: "*"
- selector: invoicesrpc.Invoices.SettleInvoice
post: "/v2/invoices/settle"
body: "*"