👑 Premium Sign in Sign up

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.

📶 L100⏱ 25 min🧪 Live lab

🎯 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.

REST resource mapEach HTTP method maps to an action on the /books resource; status codes say what happened.ClientGET /booksPOST /booksPUT /books/7ValidateJSON bodyLibraryservice200 / 201 /400 / 404Person / clientAPI / gatewaySecurity controlComputeApp / UI

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

Official sources, checked on 5 Nov 2026. Cloud services change often; check the official page before relying on a feature. All references