Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.65 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.65 KB

express-restfull

The technology that I use

  1. Node Js
  2. Express Js
  3. Mysql

How to start

npm install
npm run start

ENDPOINT

Path Method Description Data
/api/produk GET used for show list of produk from database. -
/api/produk/:id GET used for show detail of produk from database. Params Request :
id: integer
/api/produk POST used for add data produk to database. Raw Object Request :
product_name: varchar
product_price: integer
/api/produk/:id PUT used for update data produk to database. Params Request :
id: integer
Raw Object Request :
product_name: varchar
product_price: integer
/api/produk/:id DELETE used for delete data of produk from database. Params Request :
id: integer