From 13cef22bbf778dc5be066ba187ff7fc70b7d6b9b Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 21 May 2018 11:43:15 -0700 Subject: [PATCH] RawMempool and VerifyChain --- package.json | 2 +- public/bitbox-rest-v1.json | 38 +++++++++++++++----------------------- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 9bf9b289..c93aef9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rest-cloud", - "version": "0.1.9", + "version": "0.1.10", "private": true, "scripts": { "start": "node ./bin/www" diff --git a/public/bitbox-rest-v1.json b/public/bitbox-rest-v1.json index c18fb6c0..ac72202d 100644 --- a/public/bitbox-rest-v1.json +++ b/public/bitbox-rest-v1.json @@ -639,10 +639,10 @@ ], "responses": { "200": { - "description": "successful operation" - }, - "400": { - "description": "Invalid tag value" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/RawMempool" + } } } } @@ -827,7 +827,10 @@ ], "responses": { "200": { - "description": "successful operation" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/VerifyChain" + } } } } @@ -1845,26 +1848,15 @@ }, } }, - "RawMempool": { - "type": "object", - "properties": { - "size": { - "type": "number" - }, - "bytes": { - "type": "number" - }, - "usage": { - "type": "number" - }, - "maxmempool": { - "type": "number" - }, - "mempoolminfee": { - "type": "number" - } + "RawMempool": { + "type": "array", + "items": { + "type": "string" } }, + "VerifyChain": { + "type": "boolean" + }, "transactionDetails": { "type": "object", "properties": {