Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Arcada-DevOps-MMMLS/Products

Repository files navigation

Build Status

Products

API for Products

GET Products

Method: GET

Path: /api/products

Response:

[{
   "id": 1,
   "name": "Airmax",
   "brand": "Nike",
   "size": 42,
   "color": "blue",
   "description": "Very nice shoes",
   "price": 1000.00,
   "gender": "male"
}]

GET a specific product

Method: GET

Path: /api/product/ID

Response:

[{
   "id": 1,
   "name": "Airmax",
   "brand": "Nike",
   "size": 42,
   "color": "blue",
   "description": "Very nice shoes",
   "price": 1000.00,
   "gender": "male"
}]

POST Products

Method: POST

Path: /api/products/new

Request:

[{
   "name": "Airmax",
   "brand": "Nike",
   "size": 42,
   "color": "blue",
   "description": "Very nice shoes",
   "price": 1000.00,
   "gender": "male"
}]

DELETE Product

Method: DELETE

Path: /api/products/delete/ID to delete

UPDATE Product

Method: PUT

Path: /api/products/update/ID to update

Request:

[{
   "name": "Airmax",
   "brand": "Nike",
   "size": 42,
   "color": "blue",
   "description": "Very nice shoes",
   "price": 1000.00,
   "gender": "male"
}]