diff --git a/controllers/keysend.ctrl.go b/controllers/keysend.ctrl.go index b197fe1..3d3e85f 100644 --- a/controllers/keysend.ctrl.go +++ b/controllers/keysend.ctrl.go @@ -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 diff --git a/docs/docs.go b/docs/docs.go index 01511e1..72ce1aa 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -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", diff --git a/docs/swagger.json b/docs/swagger.json index 5679125..49c2eb9 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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" }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 09e278e..2264d19 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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