Codemo Playground
  • Getting Started
  • General UI
  • Dynamic UI
  • Browser Interactions
  • Storage & State
  • API
    • HTTP Methods (CRUD)
  • Beehive
Back to Home
API

HTTP Methods (CRUD)

Practice GET, POST, PUT, and DELETE operations to manage resources.
Thankful
This playground is using JSONPlaceholder API (https://jsonplaceholder.typicode.com/) for testing purposes. Big thanks to the creators of this free API for providing such a great resource for learning and experimentation!
Get a Post
Call the API endpoint shown below, then enter the HTTP status code you received.
GEThttps://jsonplaceholder.typicode.com/posts/5

Enter the HTTP status code from the response.

Get a List of Posts
Call the API endpoint shown below, then enter the total number of posts returned.
GEThttps://jsonplaceholder.typicode.com/posts

Enter the total number of posts in the response array.

Create a New Post
Send a POST request with the body shown below, then enter the new post ID and status code.
POSThttps://jsonplaceholder.typicode.com/posts
{ "title": "API Testing" }

Enter the ID of the newly created post and the status code.

Update a User
Send a PUT request with the body shown below using the generated name, then enter the name returned in the response.
PUThttps://jsonplaceholder.typicode.com/users/2
{ "name": "Zoey Stracke" }

Enter the name returned in the response body.

Patch a User
Send a PATCH request with the body shown below, then enter the name and email from the response body.
PATCHhttps://jsonplaceholder.typicode.com/users/3
{ "name": "Miriam Runte" }

Enter the name and email from the response body.

Delete a Todo
Send a DELETE request to the endpoint shown below, then enter the HTTP status code you received.
DELETEhttps://jsonplaceholder.typicode.com/todos/25

Enter the HTTP status code from the response.

Get a Todo – Validate Response Body
Call the GET endpoint shown below and check the value of the 'completed' field in the response body.
GEThttps://jsonplaceholder.typicode.com/todos/12

Select the value of the "completed" field.

Get a User – Find the Email
Call the GET endpoint shown below and enter the email address of the user from the response.
GEThttps://jsonplaceholder.typicode.com/users/3

Enter the email address found in the response body.

Wait for a Request
Click 'Send Request' to trigger an API call. Once the response arrives, enter the HTTP method and full URL of the request that was made.

Response title will appear here after the request completes.

Wait for a Response
Click the dropdown to trigger an API call. Wait for the response to load, then select 'Chelsey Dietrich' from the list.

Selected: (none)