This project has been created as a website where mobile data can be obtained, uploaded, modified and deleted.
You can search through all the mobiles in the database.
A dark mode has also been implemented.
The project has been treated as if it were an api.
The port that has been treated has been 8802, if that port was busy by default it uses 8801.
Deployed at - https://phonescatalog.herokuapp.com/
1 ENDPOINT have been created, this ENDPOINT got 1 post, 1 update, 1 delete and 2 get.
The body of the message shall be as follows:
{ "name": "TCL 10 SE", "manufacturer": "Tcl", "description": "NXTVISION, Notch Gota, resistente a rayones", "color": "Black", "price": 190, "screen": "6,52 inch", "processor": "Helio P22", "ram": 4 }
The following answer will be found:
{ message:phone added }
There is an error response for the following cases :
- Check if all fields are sent, except imageFileName that take the manufacturer one + .png
All the phones in the DB will be returned to us.
The phone will be returned to us with the requested name.
The phone with that id will be deleted
The phone with that name will be updated if any fields are being sent in the body.
There is not testing yet.