CSE22 · Web, API & secure coding
REST Request & Response
Build requests to a mock library API: choose the method, path, headers and body, and read the response.
🎯 You will learn to
- Use GET, POST, PUT and DELETE
- Read status codes
- Send JSON
🧪 Live environment
Runs entirely in your browser: nothing is installed, no real cloud account is used and your code is never sent to our server.
Loading the lab…
✅ Steps & checkpoints
🗺️ REST resource map
Each HTTP method maps to an action on the /books resource; status codes say what happened.
The 2D diagram shows the exact flow, ports and trust boundaries. The 3D scene is a concept view of the same parts; packets travel along the same arrows.
🤔 Think about it
Why should GET never change data?
🛡️ Safety & cost
The APIs are mocks inside this page. Identities and data are fictional.
🧹 Cleanup
Nothing to clean up.
📚 Reference documents
- An overview of HTTP · MDN
- OWASP Top Ten · OWASP
- Accessibility · MDN
Official sources, checked on 5 Nov 2026. Cloud services change often; check the official page before relying on a feature. All references