mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-21 06:34:58 +01:00
add getinvoice endpoint
This commit is contained in:
49
docs/docs.go
49
docs/docs.go
@@ -246,6 +246,55 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/invoices/{payment_hash}": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"OAuth2Password": []
|
||||
}
|
||||
],
|
||||
"description": "Retrieve information about a specific invoice by payment hash",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
],
|
||||
"summary": "Get a specific invoice",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Payment hash",
|
||||
"name": "payment_hash",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v2controllers.Invoice"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/payments/bolt11": {
|
||||
"post": {
|
||||
"security": [
|
||||
|
||||
Reference in New Issue
Block a user