Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 602 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 602 Bytes

Installation :

  • install node-modules npm install

  • copy .env.example

  • set databases

  • Run app with node.js node app.js

  • open postman

RestfullAPI-ExpressJS-MySQL-CoffeeShop

// menampilkan data .get http://localhost:8000/product

// insert data .push http://localhost:8000/product

// delete data .delete http://localhost:8000/product/id

// update data .put http://localhost:8000/product/id

//search name .get http://localhost:8000/product?searcrh=

// get page by limit .get http://localhost:8000/product?limit=10&page=2

//sort .get http://localhost:8000/product?field=id&sort=asc