API:Userproduct

From MCM Combat Operations
Revision as of 11:21, 29 January 2015 by Nash Fraenkel (development | contribs) (Created page with "Request a resource that indicates if the user owns a particular product '''URI:''' /users/{userid}/products/{productID} Returns either a 303 redirect to a sale ...")
(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/{userid}/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