Raesquiv13 / gpos-System

Sistema de punto de venta
1 stars 0 forks source link

Create an API to get all the products of an specific user. #13

Closed Raesquiv13 closed 4 years ago

Raesquiv13 commented 4 years ago

As the product owner, I want to:

API: Verb: GET URL: "/api/products/:userEmail"

response

status: 200 body

{
{
"userEmail":"me@correo.com"
 "price": 2500,
"category": "movil",
"_id": "5e816f0bbdeb98275cc3b902",
"name": "Telefono updated",
"picture": "Telefono _updated.png",
"description": "telefono celular",
"__v": 0
},
{
"userEmail":"me2@correo.com"
 "price": 2500,
"category": "movil",
"_id": "5e8275cc3b902ft3ac45e",
"name": "Telefono updated2",
"picture": "Telefono _updated2.png",
"description": "telefono celula2r",
"__v": 0
}
}

error status: 500 "message": "Error al realizar la peticion:"

Raesquiv13 commented 4 years ago

Test case

Creation Was not needed because the implementation change, the code was useful but a better approach was implemented.

To understand better what happen go(https://github.com/Raesquiv13/gpos-System/issues/14)

Execution Was not needed