Field
new_field
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
new_field
parameters*
JSON
check method parameters
new_field Method Parameters
name
string
Field name (e.g. Camp Nou)
sport
string
Sport (e.g. Football)
fieldLength
number
Field length in centimeters (e.g. 12000)
fieldWidth
number
Field width in centimeters (e.g. 9000)
cubeLength
number
The square size of a single cube (e.g. 300 for a cube of 3x3 meters)
new_field API Call Example
new_field Call Response
When the API call is successfully executed, it returns thefieldId
, which will be used to link NFT Game Cube related objects.
All the cubes for that field are created when creating a new field.
list_fields
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
list_fields
parameters
JSON
(optional) check method parameters
list_fields Method Parameters (optional)
field_id
string
Field Id
list_fields API Call Example
list_fields Call Response
When the API call is successfully executed, it returns the list of fields you created or a single field if fieldId
parameter is included in the call.
delete_field
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
delete_field
parameters*
JSON
check method parameters
delete_field Method Parameters
fieldId
string
Field Id to delete.
delete_field API Call Example
delete_field Call Response
When the API call is executed without errors, it returns a successful status code.
All the cubes created and assigned to the deleted field are also deleted.
Last updated