fix swagger

This commit is contained in:
kiwiidb
2022-05-18 12:16:24 +02:00
parent d01b9c492f
commit bc4655fe8c
4 changed files with 69 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ type KeySendResponseBody struct {
PaymentRoute *service.Route `json:"payment_route,omitempty"`
}
//// PayInvoice godoc
//// KeySend godoc
// @Summary Make a keysend payment
// @Description Pay a node without an invoice using it's public key
// @Accept json

View File

@@ -816,6 +816,15 @@ const docTemplate = `{
"amt": {
"type": "integer"
},
"custom_records": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"description": {
"type": "string"
},
@@ -825,6 +834,9 @@ const docTemplate = `{
"ispaid": {
"type": "boolean"
},
"keysend": {
"type": "boolean"
},
"pay_req": {
"type": "string"
},
@@ -908,9 +920,21 @@ const docTemplate = `{
"controllers.OutgoingInvoice": {
"type": "object",
"properties": {
"custom_records": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"fee": {
"type": "integer"
},
"keysend": {
"type": "boolean"
},
"memo": {
"type": "string"
},
@@ -1025,7 +1049,7 @@ var SwaggerInfo = &swag.Spec{
Version: "0.6.1",
Host: "",
BasePath: "/",
Schemes: []string{"http", "https"},
Schemes: []string{"https", "http"},
Title: "LNDhub.go",
Description: "Accounting wrapper for the Lightning Network providing separate accounts for end-users.",
InfoInstanceName: "swagger",

View File

@@ -1,7 +1,7 @@
{
"schemes": [
"http",
"https"
"https",
"http"
],
"swagger": "2.0",
"info": {
@@ -812,6 +812,15 @@
"amt": {
"type": "integer"
},
"custom_records": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"description": {
"type": "string"
},
@@ -821,6 +830,9 @@
"ispaid": {
"type": "boolean"
},
"keysend": {
"type": "boolean"
},
"pay_req": {
"type": "string"
},
@@ -904,9 +916,21 @@
"controllers.OutgoingInvoice": {
"type": "object",
"properties": {
"custom_records": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"fee": {
"type": "integer"
},
"keysend": {
"type": "boolean"
},
"memo": {
"type": "string"
},

View File

@@ -157,12 +157,20 @@ definitions:
properties:
amt:
type: integer
custom_records:
additionalProperties:
items:
type: integer
type: array
type: object
description:
type: string
expire_time:
type: integer
ispaid:
type: boolean
keysend:
type: boolean
pay_req:
type: string
payment_hash: {}
@@ -218,8 +226,16 @@ definitions:
type: object
controllers.OutgoingInvoice:
properties:
custom_records:
additionalProperties:
items:
type: integer
type: array
type: object
fee:
type: integer
keysend:
type: boolean
memo:
type: string
payment_hash: {}
@@ -664,8 +680,8 @@ paths:
tags:
- Payment
schemes:
- http
- https
- http
securityDefinitions:
OAuth2Password:
flow: password