more fixies
This commit is contained in:
parent
c5ea8c899d
commit
6ae03e520c
19 changed files with 2330 additions and 1880 deletions
|
|
@ -89,9 +89,9 @@ service LightningPub {
|
|||
};
|
||||
|
||||
rpc SetMockInvoiceAsPaid(structs.SetMockInvoiceAsPaidRequest) returns (structs.Empty) {
|
||||
option (auth_type) = "Admin";
|
||||
option (auth_type) = "Guest";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/admin/lnd/mock/invoice/paid";
|
||||
option (http_route) = "/api/lnd/mock/invoice/paid";
|
||||
}
|
||||
|
||||
// <App>
|
||||
|
|
@ -101,6 +101,12 @@ service LightningPub {
|
|||
option (http_method) = "post";
|
||||
option (http_route) = "/api/admin/app/add";
|
||||
};
|
||||
|
||||
rpc GetApp(structs.Empty) returns (structs.Application) {
|
||||
option (auth_type) = "App";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/app/get";
|
||||
}
|
||||
|
||||
rpc AddAppUser(structs.AddAppUserRequest)returns (structs.AppUser) {
|
||||
option (auth_type) = "App";
|
||||
|
|
@ -149,6 +155,16 @@ service LightningPub {
|
|||
option (http_method) = "post";
|
||||
option (http_route) = "/api/app/user/lnurl/pay/info";
|
||||
}
|
||||
rpc SetMockAppUserBalance(structs.SetMockAppUserBalanceRequest) returns (structs.Empty) {
|
||||
option (auth_type) = "App";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/app/mock/user/blance/set";
|
||||
}
|
||||
rpc SetMockAppBalance(structs.SetMockAppBalanceRequest) returns (structs.Empty) {
|
||||
option (auth_type) = "App";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/app/mock/blance/set";
|
||||
}
|
||||
|
||||
// </App>
|
||||
|
||||
|
|
|
|||
|
|
@ -29,11 +29,16 @@ message AddAppRequest {
|
|||
string name = 1;
|
||||
}
|
||||
|
||||
message AddAppResponse {
|
||||
message Application {
|
||||
string name = 1;
|
||||
string id = 2;
|
||||
string auth_token = 3;
|
||||
int64 balance = 3;
|
||||
}
|
||||
message AddAppResponse {
|
||||
Application app = 1;
|
||||
string auth_token = 2;
|
||||
}
|
||||
|
||||
|
||||
message AddAppUserRequest {
|
||||
string identifier = 1;
|
||||
|
|
@ -91,6 +96,15 @@ message GetAppUserLNURLInfoRequest {
|
|||
string user_identifier = 1;
|
||||
}
|
||||
|
||||
message SetMockAppUserBalanceRequest {
|
||||
string user_identifier = 1;
|
||||
int64 amount = 2;
|
||||
}
|
||||
|
||||
message SetMockAppBalanceRequest {
|
||||
int64 amount = 1;
|
||||
}
|
||||
|
||||
enum AddressType {
|
||||
WITNESS_PUBKEY_HASH = 0;
|
||||
NESTED_PUBKEY_HASH = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue