REST API Live Demo

This is a live REST API running on Express.js. Test CRUD operations and see actual HTTP responses!

Base URL: http://cse135.site:3004/api/items
Note: This is shared storage - you'll see items from other students. Items reset hourly.

Current Items

Loading...

API Response

// Make an API call to see the response here

Test the API

GET Get All Items

Retrieve the complete list of items.

GET /api/items

GET Get One Item

Retrieve a specific item by ID.

GET /api/items/

Try an ID that doesn't exist to see a 404 response.

POST Create Item

Create a new item. Returns 201 Created on success.

POST /api/items

PUT Update Item

Update an existing item's name or completion status.

PUT /api/items/

DELETE Delete Item

Remove an item permanently.

DELETE /api/items/

The Code

What you're testing: This is a real Express.js server running Node.js. The API endpoints follow REST conventions with proper status codes and JSON responses.

View the source: rest-live-demo.js

Back to Module 05