mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
8299d632e8
In this commit, we add a new `LookupInvoiceV2` method attached to the invoice RPC sub-server. Compared to the existing version, this version allows an invoice to be looked up by an invoice ref. This enables users to query an AMP invoice based on a specific _set ID_, so they can get the information related to the set of cumulative settles to that invoices.
19 lines
552 B
YAML
19 lines
552 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: "*"
|
|
- selector: invoicesrpc.Invoices.LookupInvoiceV2
|
|
get: "/v2/invoices/lookup"
|