API:Userproduct: Difference between revisions

From MCM Combat Operations
Jump to: navigation, search
(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 ...")
 
No edit summary
 
Line 1: Line 1:
Request a resource that indicates if the user owns a particular product
Request a resource that indicates if the user owns a particular product


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


Returns either a 303 redirect to a [[api:Sale|sale]] or a [[api:SalesUpdate|salesupdate]] if either exists, or else 404.
Returns either a 303 redirect to a [[api:Sale|sale]] or a [[api:SalesUpdate|salesupdate]] if either exists, or else 404.

Latest revision as of 11:37, 29 January 2015

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