/myRetailSpringBootMongoDB

Rest service created using Spring Boot and MongoDB.

Primary LanguageJava

About myRetail is a rest service that returns product description and price details given product id.

Rest Service Contract: Title: Get product information by product id. URL: http://myretail5.herokuapp.com/v1/products/{productId} Method: GET Pathvariable: productId - must be integer Returns: json response Example: {"productId":13860428,"name":"some name","currentPrice":{"value":"10","currencyCode":"USD"}}

Title: Updates product price URL: http://myretail5.herokuapp.com/v1/products/{productId} Method: PUT PathVariable: productId - must be integer Returns: json response accepts: json requestBody same as response for GET.

Error Responses