Skip to content
Snippets Groups Projects
Commit f078d38d authored by Éloïs's avatar Éloïs
Browse files

[fix] requests names are strings

parent 7841bbdd
No related branches found
No related tags found
1 merge request!4RFC 4 : Duniter WS2P API v1
......@@ -410,14 +410,12 @@ Each type of query has a unique identifier called "name" (Realy it's an integer)
### getCurrent
name = 3
JSON Message :
{
reqId: REQUESTS_UNIQUE_ID,
body: {
name: 3,
name: "CURRENT",
params: {}
}
}
......@@ -441,14 +439,12 @@ JSON error response :
### getBlock
name = 2
JSON Message :
{
reqId: REQUESTS_UNIQUE_ID,
body: {
name: 2,
name: "BLOCK_BY_NUMBER",
params: {
number: BLOCK_NUMBER
}
......@@ -474,14 +470,12 @@ JSON error response :
### getBlocks
name = 1
JSON Message :
{
reqId: REQUESTS_UNIQUE_ID,
body: {
name: 1,
name: "BLOCKS_CHUNK",
params: {
count: *number of blocks requested*,
fromNumber: *number of the 1st block of the requested interval*
......@@ -514,14 +508,12 @@ JSON error response :
Requests the "requirements" of all identities that have received at least `minCert` certifications.
name = 0
JSON Message :
{
reqId: REQUESTS_UNIQUE_ID,
body: {
name: 0,
name: "WOT_REQUIREMENTS_OF_PENDING",
params: {
minCert: *integer*
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment