- Long id
- String name
- String description
- int stock
- int price
Endpoint | HTTP Method | Keterangan |
---|---|---|
/products | GET | Get all products |
/products/:id | GET | Get product with specific id |
/products | POST | Create new product |
/products/:id | PATCH | Update product with specific id |
/products/:id | DELETE | Delete product with specific id |