node app
GET /api/product/
curl -i -H 'Accept: application/json' http://localhost:8000/api/product/
"products": [
{
"id": 5,
"name": "ENERGETICA MR BIG",
"url_image": "https://dojiw2m9tvv09.cloudfront.net/11132/product/misterbig3308256.jpg",
"price": 1490,
"category": 1
},
...]
GET /api/product/
curl -i -H 'Accept: application/json' http://localhost:8000/api/product/
"category": [
{
"id": 1,
"name": "bebida energetica"
},
{
"id": 2,
"name": "pisco"
},
...]