mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
Define the AccountPayments RPC endpoint and its request/response messages in lit-accounts.proto. This endpoint allows querying paginated payment history for a specific account. Also update the frontend JS/TS proto sanitization script to map the imported lnd.proto file to its flat directory path, fixing app build.
25 lines
718 B
YAML
25 lines
718 B
YAML
type: google.api.Service
|
|
config_version: 3
|
|
|
|
http:
|
|
rules:
|
|
|
|
# lit-accounts.proto
|
|
- selector: litrpc.Accounts.CreateAccount
|
|
post: "/v1/accounts"
|
|
body: "*"
|
|
- selector: litrpc.Accounts.UpdateAccount
|
|
post: "/v1/accounts/{id}"
|
|
body: "*"
|
|
- selector: litrpc.Accounts.ListAccounts
|
|
get: "/v1/accounts"
|
|
- selector: litrpc.Accounts.RemoveAccount
|
|
delete: "/v1/accounts/{id}"
|
|
- selector: litrpc.Accounts.CreditAccount
|
|
post: "/v1/accounts/credit/{account.id}"
|
|
body: "*"
|
|
- selector: litrpc.Accounts.DebitAccount
|
|
post: "/v1/accounts/debit/{account.id}"
|
|
body: "*"
|
|
- selector: litrpc.Accounts.AccountPayments
|
|
get: "/v1/accounts/payments"
|