API:Product: Difference between revisions
From MCM Combat Operations
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
"mcm:productsale": { | "mcm:productsale": { | ||
"href": "http:\/\/testsu\/mcm-api\/products\/30\/sales" | "href": "http:\/\/testsu\/mcm-api\/products\/30\/sales" | ||
}, | |||
"mcm:staffdelivery": { | |||
"href": "http:\/\/testsu\/mcm-api\/users/{userName}/products/30/staffdelivery" | |||
} | } | ||
}, | }, |
Revision as of 21:45, 20 June 2020
Returns product info suitable for use by a vendor application
URI: /products/{productID}
Example Request
GET http://testsu/mcm-api/products/30 Accept: application/hal+json -- response -- 200 OK Content-Type: application/hal+json { "_links": { "self": { "href": "http:\/\/testsu\/mcm-api\/products\/30" }, "curies": [ { "name": "mcm", "href": "http:\/\/wiki.mcm-systems.net\/index.php?title=api:{rel}", "templated": true } ], "mcm:productsale": { "href": "http:\/\/testsu\/mcm-api\/products\/30\/sales" }, "mcm:staffdelivery": { "href": "http:\/\/testsu\/mcm-api\/users/{userName}/products/30/staffdelivery" } }, "prodID": "30", "prodName": "Fox", "prodPrice": "130", "prodImage": "83ffffb5-7f0e-8a39-2d27-bfba7208563a" }