Library Game Checkout

When someone "rents" a LibraryGame one of these is created to keep track of that rental. Library Game Checkouts are accessed via /api/librarygamecheckout.

Properties

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

Complete details in LibraryGameCheckoutProperties.

Related Objects

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

badge

The Badge associated with this checkout, if any.

convention

The Convention associated with this checkout, if any.

library

The Library this library game checkout belongs to.

librarygame

The LibraryGame this library game checkout belongs to.

user

The User associated with this checkout, if any.

Services

The services used to fetch and manipulate library game checkouts.

Search Library Game Checkouts

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

 GET /api/librarygamecheckout
Optional Params
query

Searches a partial renter_name.

Returns:

 {
    "paging" : {...},
    "items" : [
        {
          "id" : "xxx",
          "renter_name" : "Andy Dufresne",
          ...
        },
        ...
    ]
 }

Create Library Game Checkout

 POST /api/librarygamecheckout
Required Params
library_id
librarygame_id
renter_name

Returns the same as a normal read.

Read Library Game Checkout

 GET /api/librarygamecheckout/xxx

Returns:

 {
   "id" : "xxx",
   "renter_name" : "Andy Dufresne",
   ...
 }

Update Library Game Checkout

 PUT /api/librarygamecheckout/xxx

Returns the same as a normal read.

Delete Library Game Checkout

 DELETE /api/librarygamecheckout/xxx

Returns:

 {
   "success" : 1
 }

Check In

This returns a game to the library that has been checked out.

 POST /api/librarygamecheckout/xxx/checkin

Returns the same as a normal read.