/api

API-s in ExpressJS

Primary LanguageJavaScript

API-s in ExpressJS

Check routes on localhost:3000 with Nodemon

APIs

http://localhost:3000/kitchen

http://localhost:3000/users

http://localhost:3000/phones

Client

http://localhost:5000/

http://localhost:5000/client/iphone

http://localhost:5000/client/kitchen

http://localhost:5000/client/users

or

http://localhost:5000/

http://localhost:5000/iphone

http://localhost:5000/kitchen

http://localhost:5000/users

When using serve

For example

GET, POST, PUT, DELETE

(download)

/routes/kitchen

POST (to get picture of this kitchen)

http://localhost:3000/kitchen/1

GET (info about kitchen)

http://localhost:3000/kitchen/14

DELETE (picture of some kitchen)

http://localhost:3000/kitchen/5

GET (download kitchens picture)

http://localhost:3000/kitchen/download/4

Tested with Postman