When someone enters into a play to win drawing for a LibraryGame,
we need to track it.
Play To Wins are accessed via /api/playtowin
.
See "Object Properties" in Introduction for basic shared properties.
Complete details in PlayToWinProperties.
See "Related Objects" in Introduction for how to use them.
The Badge associated with this play to win, if any.
The Convention associated with this play to win, if any.
The Library this play to win belongs to.
The LibraryGame this play to win belongs to.
The User associated with this play to win, if any.
The services used to fetch and manipulate play to wins.
This will search across all libraries. To search on a single library see "Relationships" in Library.
GET /api/playtowin
Searches a partial name.
Returns:
{ "paging" : {...}, "items" : [ { "id" : "xxx", "name" : "Andy Dufresne", ... }, ... ] }
POST /api/playtowin
Returns the same as a normal read.
GET /api/playtowin/xxx
Returns:
{ "id" : "xxx", "name" : "Andy Dufresne", ... }
PUT /api/playtowin/xxx
Returns the same as a normal read.
DELETE /api/playtowin/xxx
Returns:
{ "success" : 1 }