Skip to content

Sanchez9aa/PhoneCatalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phone Catalog

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.

API

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/

ENDPOINTS

1 ENDPOINT have been created, this ENDPOINT got 1 post, 1 update, 1 delete and 2 get.

POST /phones

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

GET /phones

All the phones in the DB will be returned to us.

GET /phones/:name

The phone will be returned to us with the requested name.

DELETE /phones/:id

The phone with that id will be deleted

PUT /phones/:name

The phone with that name will be updated if any fields are being sent in the body.

Test

There is not testing yet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published