An open API service indexing awesome lists of open source software.

https://github.com/lucapasquale/onemarket

Cart API with Node.js, Hapi and Postgresql
https://github.com/lucapasquale/onemarket

amazon-web-services hapijs nodejs postgresql sequelize

Last synced: 2 months ago
JSON representation

Cart API with Node.js, Hapi and Postgresql

Awesome Lists containing this project

README

          

# OneMarket
Cart API with Hapi.js and PostgreSQL on ElasticBeanstalk

## Links:

GET - http://default-environment.ypmxh7rj5r.us-east-1.elasticbeanstalk.com/products

GET - http://default-environment.ypmxh7rj5r.us-east-1.elasticbeanstalk.com/cart/5

POST - http://default-environment.ypmxh7rj5r.us-east-1.elasticbeanstalk.com/cart

PUT - http://default-environment.ypmxh7rj5r.us-east-1.elasticbeanstalk.com/cart

## Example Body:

{
"id": 5,
"products": [
{
"name": "D",
"description": "dddd",
"price": 1.1,
"quantity": 1
},
{
"name": "C",
"description": "ccc",
"price": 3.0,
"quantity": 2
},
{
"name": "E",
"description": "eeeee",
"price": 0.5,
"quantity": 4
}
]
}