API:Userproduct

From MCM Combat Operations
Revision as of 11:37, 29 January 2015 by Nash Fraenkel (development | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Request a resource that indicates if the user owns a particular product

URI: /users/{user}/products/{productID}

Returns either a 303 redirect to a sale or a salesupdate if either exists, or else 404.

See also:

api:Sale

api:SalesUpdate

Request example

GET http://testsu/mcm-api/users/Bellimora Resident/products/20
Accept: application/hal+json

-- response --
303 See Other
Location: http://testsu/mcm-api/sales/30210