Lab 01 / Developer documentation
Make your first API request.
This sample quickstart uses JSONPlaceholder, a public test API, to demonstrate concise onboarding documentation.
Before you begin
You need a terminal with curl installed. This test endpoint does not require an API key.
1. Send a request
Run the following command to retrieve post 1:
curl -i https://jsonplaceholder.typicode.com/posts/12. Check the response
A successful request returns HTTP status 200 OK and a JSON object containing userId, id, title, and body.
Confirm that the response contains all four fields. The id value should be 1.
If the request fails
Check your internet connection and confirm that the URL contains /posts/1. With the -i option, inspect the HTTP status before interpreting the JSON. Do not treat an error response as a successful resource lookup.
Source and validation
This is an independent exercise based on the JSONPlaceholder public documentation. It contains test data and requires no employer information. Service availability and returned content may change.
Where to go next
Change the final number to retrieve another post, or send a request to /users/1 to explore a different resource.