[doc] fix acceleration history endpoint detail

This commit is contained in:
nymkappa 2024-02-10 10:56:19 +01:00
parent 5f698dfbbb
commit be183ada0a
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -9955,8 +9955,8 @@ export const restApiDocsData = [
headers: "api_key: stacksats", headers: "api_key: stacksats",
response: `{ response: `{
"balance": 99900000, "balance": 99900000,
"hold": 0, "hold": 101829,
"feesPaid": 200000 "feesPaid": 133721
}`, }`,
}, },
} }
@ -10044,15 +10044,15 @@ export const restApiDocsData = [
fragment: "history", fragment: "history",
title: "GET Acceleration History", title: "GET Acceleration History",
description: { description: {
default: "<p>Return the history of previous acceleration requests.</p><p>Pass one of the following for <code>:status</code>: <code>all</code>, <code>requested</code>, <code>accelerating</code>, <code>mined</code>, <code>completed</code>, <code>failed</code>.</p>" default: "<p>Return the history of previous acceleration requests.</p><p>Pass one of the following for <code>:status</code>: <code>all</code>, <code>requested</code>, <code>accelerating</code>, <code>mined</code>, <code>completed</code>, <code>failed</code>.<br>Pass <code>true</code> in <code>:details</code> to get a detailed <code>history</code> of the acceleration request.</p>"
}, },
urlString: "/v1/services/accelerator/history?status=:status", urlString: "/v1/services/accelerator/history?status=:status&details=:details",
showConditions: [""], showConditions: [""],
showJsExamples: showJsExamplesDefaultFalse, showJsExamples: showJsExamplesDefaultFalse,
codeExample: { codeExample: {
default: { default: {
codeTemplate: { codeTemplate: {
curl: `/api/v1/services/accelerator/history?status=all`, curl: `/api/v1/services/accelerator/history?status=all&details=true`,
commonJS: ``, commonJS: ``,
esModule: `` esModule: ``
}, },