The technology that I use
- Node Js
- Express Js
- Mysql
How to start
npm install
npm run start
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 |