API:Userproduct

From MCM Combat Operations
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