Description of PR that completes issue here...
- Item 1
- Item 2
- Item 3
If this PR contains code that defines a new request/response, or changes an existing one, please put the JSON representations here.
Request
POST /products
Creates a new product
{
"title": "Kite",
"product_type_id": 1,
"description": "Red. It flies high.",
"quantity": 5
}
Response
HTTP/1.1 201 OK
{
"id": 54,
"title": "Kite",
"product_type_id": 1,
"description": "Red. It flies high.",
"quantity": 5
}
Description of how to test code...
- Run migrations
- Run test suite
- Seed database
- Fixes #85
- Fixes #22