This API allows you to create two sided objects like mats and boards.
Accessible via /api/twosided
.
Each two sided object is accessed via /api/twosided
and has the following properties.
Complete details in TwoSidedProperties.
The unique id for this two sided object. It will never change.
twosided
A date when the two sided object was created.
A date when the two sided object was last updated.
The name the two sided object is known by.
A TwoSidedSet id. The unique id of a two sided set that this two sided object belongs to.
An integer between 1 and 99.
Defaults to 1
.
Allows for multiple copies of a two sided object to be included in the game.
A File id.
Sets the face image of the two sided object.
The ID is from a File.
If a face_id is specified,
then an extra property called face
will be added which will briefly describe the image.
A boolean indicating whether the face image has been verified by the user to be correct.
A File id.
Sets the back image of the two sided object.
The ID is from a File.
If a back_id is specified,
then an extra property called back
will be added which will briefly describe the image.
A boolean indicating whether the back image has been verified by the user to be correct.
A boolean indicating whether the back image should be taken from the set, or from this object.
The TwoSidedSet that this two sided object is a member of.
The methods used to fetch and manipulate two sided objects.
POST /api/twosided
Required. The unique session id provided by a Session method.
Required.
Required.
Optional.
Optional.
Optional.
Returns:
{ "id" : "xxx", "name" : "Guard", ... }
PUT /api/twosided/xxx
See Create for details.
DELETE /api/twosided/xxx
Required. The unique session id provided by a Session method.
Returns:
{ "success" : 1 }
GET /api/twosided/xxx
Optional. The unique session id provided by a Session method.
Optional. See "Relationships" in Intro and Relationship above for details.
Returns:
{ "id" : "xxx", "name" : "Guard", ... }