From bb1adf41e788c02d949c13ac80a2f43560e5669b Mon Sep 17 00:00:00 2001 From: junderw Date: Fri, 19 Aug 2022 22:01:04 +0900 Subject: [PATCH] Update API docs for Difficulty API (REST) --- .../src/app/docs/api-docs/api-docs-data.ts | 44 ++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/frontend/src/app/docs/api-docs/api-docs-data.ts b/frontend/src/app/docs/api-docs/api-docs-data.ts index f8f0e23b8..1b02ceceb 100644 --- a/frontend/src/app/docs/api-docs/api-docs-data.ts +++ b/frontend/src/app/docs/api-docs/api-docs-data.ts @@ -114,11 +114,14 @@ export const restApiDocsData = [ curl: [], response: `{ progressPercent: 44.397234501112074, - difficultyChange: 0.9845932018381687, - estimatedRetargetDate: 1627762478.9111245, + difficultyChange: 98.45932018381687, + estimatedRetargetDate: 1627762478, remainingBlocks: 1121, - remainingTime: 665977.6261244365, - previousRetarget: -4.807005268478962 + remainingTime: 665977, + previousRetarget: -4.807005268478962, + nextRetargetHeight: 741888, + timeAvg: 302328, + timeOffset: 0 }` }, codeSampleTestnet: { @@ -127,11 +130,14 @@ export const restApiDocsData = [ curl: [], response: `{ progressPercent: 44.397234501112074, - difficultyChange: 0.9845932018381687, - estimatedRetargetDate: 1627762478.9111245, + difficultyChange: 98.45932018381687, + estimatedRetargetDate: 1627762478, remainingBlocks: 1121, - remainingTime: 665977.6261244365, - previousRetarget: -4.807005268478962 + remainingTime: 665977, + previousRetarget: -4.807005268478962, + nextRetargetHeight: 741888, + timeAvg: 302328, + timeOffset: 0 }` }, codeSampleSignet: { @@ -140,11 +146,14 @@ export const restApiDocsData = [ curl: [], response: `{ progressPercent: 44.397234501112074, - difficultyChange: 0.9845932018381687, - estimatedRetargetDate: 1627762478.9111245, + difficultyChange: 98.45932018381687, + estimatedRetargetDate: 1627762478, remainingBlocks: 1121, - remainingTime: 665977.6261244365, - previousRetarget: -4.807005268478962 + remainingTime: 665977, + previousRetarget: -4.807005268478962, + nextRetargetHeight: 741888, + timeAvg: 302328, + timeOffset: 0 }` }, codeSampleLiquid: { @@ -153,11 +162,14 @@ export const restApiDocsData = [ curl: [], response: `{ progressPercent: 44.397234501112074, - difficultyChange: 0.9845932018381687, - estimatedRetargetDate: 1627762478.9111245, + difficultyChange: 98.45932018381687, + estimatedRetargetDate: 1627762478, remainingBlocks: 1121, - remainingTime: 665977.6261244365, - previousRetarget: -4.807005268478962 + remainingTime: 665977, + previousRetarget: -4.807005268478962, + nextRetargetHeight: 741888, + timeAvg: 302328, + timeOffset: 0 }` } }