This application purpose is to demostrate a basic next js API. On this app you can use postman to send GET, POST, PATCH api request.
# Install dependencies
npm install
# To start
npm start
# Happy hacking!
The server will run on localhost:3000/ use postman to send API request.
Request | Req URL | Description |
---|---|---|
GET | localhost:3000/products | Get stored array of products |
POST | localhost:3000/products | Store an product object |
GET | localhost:3000/products/id | Get a single products by id |
PATCH | localhost:3000/products | Update a single product elements |