From 266c79ec9476259db8d5fa57c4d51cfd3261e716 Mon Sep 17 00:00:00 2001 From: altitude Date: Wed, 26 Jan 2022 15:29:33 +0000 Subject: [PATCH] [skip ci] Update docs --- docs/docs.go | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index a1db65c09..3ef33b5d0 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -456,6 +456,50 @@ var doc = `{ } } }, + "/{ledger}/transactions/batch": { + "post": { + "description": "Create a new ledger transactions batch\nCommit a batch of new transactions to the ledger", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "transactions" + ], + "summary": "Create Transactions Batch", + "parameters": [ + { + "type": "string", + "description": "ledger", + "name": "ledger", + "in": "path", + "required": true + }, + { + "description": "transactions", + "name": "transactions", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/core.Transactions" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/controllers.BaseResponse" + } + }, + "400": { + "description": "" + } + } + } + }, "/{ledger}/transactions/{txid}": { "get": { "description": "Get transaction by transaction id", @@ -696,6 +740,20 @@ var doc = `{ } } }, + "core.Transactions": { + "type": "object", + "required": [ + "transactions" + ], + "properties": { + "transactions": { + "type": "array", + "items": { + "$ref": "#/definitions/core.Transaction" + } + } + } + }, "ledger.Stats": { "type": "object", "properties": {