mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-02-23 13:54:25 +01:00
update swagger groups
This commit is contained in:
@@ -44,7 +44,7 @@ type Invoice struct {
|
||||
// @Description Returns a list of outgoing payments for a user
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Account
|
||||
// @Tags Invoice
|
||||
// @Success 200 {object} []Invoice
|
||||
// @Failure 400 {object} responses.ErrorResponse
|
||||
// @Failure 500 {object} responses.ErrorResponse
|
||||
@@ -87,7 +87,7 @@ func (controller *InvoiceController) GetOutgoingInvoices(c echo.Context) error {
|
||||
// @Description Returns a list of incoming invoices for a user
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Account
|
||||
// @Tags Invoice
|
||||
// @Success 200 {object} []Invoice
|
||||
// @Failure 400 {object} responses.ErrorResponse
|
||||
// @Failure 500 {object} responses.ErrorResponse
|
||||
@@ -184,7 +184,7 @@ func (controller *InvoiceController) AddInvoice(c echo.Context) error {
|
||||
// @Description Retrieve information about a specific invoice by payment hash
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Tags Account
|
||||
// @Tags Invoice
|
||||
// @Param payment_hash path string true "Payment hash"
|
||||
// @Success 200 {object} Invoice
|
||||
// @Failure 400 {object} responses.ErrorResponse
|
||||
|
||||
15
docs/docs.go
15
docs/docs.go
@@ -175,7 +175,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
"Invoice"
|
||||
],
|
||||
"summary": "Retrieve incoming invoices",
|
||||
"responses": {
|
||||
@@ -218,7 +218,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
"Invoice"
|
||||
],
|
||||
"summary": "Retrieve outgoing payments",
|
||||
"responses": {
|
||||
@@ -261,7 +261,7 @@ const docTemplate = `{
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
"Invoice"
|
||||
],
|
||||
"summary": "Get a specific invoice",
|
||||
"parameters": [
|
||||
@@ -490,7 +490,8 @@ const docTemplate = `{
|
||||
],
|
||||
"properties": {
|
||||
"amount": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
@@ -651,9 +652,6 @@ const docTemplate = `{
|
||||
"fee": {
|
||||
"type": "integer"
|
||||
},
|
||||
"payment_error": {
|
||||
"type": "string"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -695,9 +693,6 @@ const docTemplate = `{
|
||||
"fee": {
|
||||
"type": "integer"
|
||||
},
|
||||
"payment_error": {
|
||||
"type": "string"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
"Invoice"
|
||||
],
|
||||
"summary": "Retrieve incoming invoices",
|
||||
"responses": {
|
||||
@@ -214,7 +214,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
"Invoice"
|
||||
],
|
||||
"summary": "Retrieve outgoing payments",
|
||||
"responses": {
|
||||
@@ -257,7 +257,7 @@
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Account"
|
||||
"Invoice"
|
||||
],
|
||||
"summary": "Get a specific invoice",
|
||||
"parameters": [
|
||||
@@ -486,7 +486,8 @@
|
||||
],
|
||||
"properties": {
|
||||
"amount": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
@@ -647,9 +648,6 @@
|
||||
"fee": {
|
||||
"type": "integer"
|
||||
},
|
||||
"payment_error": {
|
||||
"type": "string"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -691,9 +689,6 @@
|
||||
"fee": {
|
||||
"type": "integer"
|
||||
},
|
||||
"payment_error": {
|
||||
"type": "string"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -28,6 +28,7 @@ definitions:
|
||||
v2controllers.AddInvoiceRequestBody:
|
||||
properties:
|
||||
amount:
|
||||
minimum: 0
|
||||
type: integer
|
||||
description:
|
||||
type: string
|
||||
@@ -135,8 +136,6 @@ definitions:
|
||||
type: string
|
||||
fee:
|
||||
type: integer
|
||||
payment_error:
|
||||
type: string
|
||||
payment_hash:
|
||||
type: string
|
||||
payment_preimage:
|
||||
@@ -164,8 +163,6 @@ definitions:
|
||||
type: string
|
||||
fee:
|
||||
type: integer
|
||||
payment_error:
|
||||
type: string
|
||||
payment_hash:
|
||||
type: string
|
||||
payment_preimage:
|
||||
@@ -302,7 +299,7 @@ paths:
|
||||
- OAuth2Password: []
|
||||
summary: Get a specific invoice
|
||||
tags:
|
||||
- Account
|
||||
- Invoice
|
||||
/v2/invoices/incoming:
|
||||
get:
|
||||
consumes:
|
||||
@@ -329,7 +326,7 @@ paths:
|
||||
- OAuth2Password: []
|
||||
summary: Retrieve incoming invoices
|
||||
tags:
|
||||
- Account
|
||||
- Invoice
|
||||
/v2/invoices/outgoing:
|
||||
get:
|
||||
consumes:
|
||||
@@ -356,7 +353,7 @@ paths:
|
||||
- OAuth2Password: []
|
||||
summary: Retrieve outgoing payments
|
||||
tags:
|
||||
- Account
|
||||
- Invoice
|
||||
/v2/payments/bolt11:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user