Library Game

Games contained in a Library. Library Games are accessed via /api/librarygame.

Properties

See "Object Properties" in Introduction for basic shared properties.

Complete details in LibraryGameProperties.

Related Objects

See "Related Objects" in Introduction for how to use them.

lastcheckout

The LibraryGameCheckout most recently created for this game.

library

The Library this game belongs to.

Relationships

See "Relationships" in Introduction for how to use them.

checkouts

The LibraryGameCheckouts created for this game.

playtowins

The PlayToWins associated with this library game.

Services

The services used to fetch and manipulate library games.

Search Library Games

This will search across all libraries. To search on a single library see "Relationships" in Library.

 GET /api/librarygame
Optional Params
query

Searches a partial name.

Returns:

 {
    "paging" : {...},
    "items" : [
        {
          "id" : "xxx",
          "name" : "The Captain is Dead",
          ...
        },
        ...
    ]
 }

Create Library Game

 POST /api/librarygame
Required Params
library_id
name
catalog_number

Returns the same as a normal read.

Read Library Game

 GET /api/librarygame/xxx

Returns:

 {
   "id" : "xxx",
   "name" : "The Captain is Dead",
   ...
 }

Update Library Game

 PUT /api/librarygame/xxx

Returns the same as a normal read.

Delete LibraryGame

 DELETE /api/librarygame/xxx

Returns:

 {
   "success" : 1
 }