This is a basic Express.js application demonstrating CRUD operations for a resource called items.
-
Install dependencies:
npm install
-
Start the server:
npm start
GET /items- List all itemsGET /items/:id- Get item by IDPOST /items- Create a new itemPUT /items/:id- Update an item (ID cannot be changed)PATCH /items/:id- Partially update an item (ID cannot be changed)DELETE /items/:id- Delete an itemPOST /items/:id/category- Add a category to an itemGET /httpbin- Fetch data from httpbin.org
index.js- Main server filepackage.json- Project metadata and scriptsrequestly-demo- Requestly workspace