From bfbdbc04baa0db710bd288c394383c1154722f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 17 Nov 2020 16:38:31 +0100 Subject: [PATCH] docgen --- api/docgen/docgen.go | 1 + documentation/en/api-methods-miner.md | 55 +++++++++++++++++++++------ 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/api/docgen/docgen.go b/api/docgen/docgen.go index e82ca882f..bc29cf91d 100644 --- a/api/docgen/docgen.go +++ b/api/docgen/docgen.go @@ -233,6 +233,7 @@ func init() { CpuUse: 0, }, }) + addExample(storiface.ErrorCode(0)) // worker specific addExample(storiface.AcquireMove) diff --git a/documentation/en/api-methods-miner.md b/documentation/en/api-methods-miner.md index a805777b5..8e8411b02 100644 --- a/documentation/en/api-methods-miner.md +++ b/documentation/en/api-methods-miner.md @@ -987,7 +987,10 @@ Inputs: "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" } }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1008,7 +1011,10 @@ Inputs: }, "ID": "07070707-0707-0707-0707-070707070707" }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1029,7 +1035,10 @@ Inputs: }, "ID": "07070707-0707-0707-0707-070707070707" }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1050,7 +1059,10 @@ Inputs: }, "ID": "07070707-0707-0707-0707-070707070707" }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1072,7 +1084,10 @@ Inputs: "ID": "07070707-0707-0707-0707-070707070707" }, true, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1093,7 +1108,10 @@ Inputs: }, "ID": "07070707-0707-0707-0707-070707070707" }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1115,7 +1133,10 @@ Inputs: "ID": "07070707-0707-0707-0707-070707070707" }, null, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1137,7 +1158,10 @@ Inputs: "ID": "07070707-0707-0707-0707-070707070707" }, null, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1159,7 +1183,10 @@ Inputs: "ID": "07070707-0707-0707-0707-070707070707" }, null, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1188,7 +1215,10 @@ Inputs: "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" } }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ``` @@ -1209,7 +1239,10 @@ Inputs: }, "ID": "07070707-0707-0707-0707-070707070707" }, - "string value" + { + "Code": 0, + "Message": "string value" + } ] ```