Templates · Practice
JSONPlaceholder collection template
A free fake REST API to try requests, tests and runs without any key.
What's inside
JSONPlaceholder is a free fake REST API with posts, comments, users and todos. It needs no account, so it is the quickest way to try Requestarium: send requests, write tests and run the whole collection.
10 requests in 2 folders · Base URL https://jsonplaceholder.typicode.com · No authentication
Set it up
- Open JSONPlaceholder in Requestarium (or in the app: Import, Start from a template) and import it. You get the collection and a "JSONPlaceholder" environment.
- No key needed. Writes are faked: the API answers as if it saved the data, but nothing changes.
- Fill in the environment, pick it in the environment menu and send the first request.
Environment variables
| Variable | What it is |
|---|---|
postId | The post the single-post requests read and change. |
Requests
Posts
- GETList posts
/postsAll 100 posts.
- GETFilter posts by user
/postsPosts of one user, filtered with a query parameter.
- GETGet a post
/posts/{{postId}}One post by id.
- POSTCreate a post
/postsAnswers 201 with the new post and id 101.
- PUTReplace a post
/posts/{{postId}}Replaces every field of the post.
- PATCHUpdate a post
/posts/{{postId}}Changes only the fields you send.
- DELETEDelete a post
/posts/{{postId}}Answers 200 with an empty object.
- GETComments on a post
/posts/{{postId}}/commentsA nested resource.
Users
- GETList users
/usersTen users with addresses and companies.
- GETTodos of a user
/users/1/todosTodos of user 1.