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

  1. Open JSONPlaceholder in Requestarium (or in the app: Import, Start from a template) and import it. You get the collection and a "JSONPlaceholder" environment.
  2. No key needed. Writes are faked: the API answers as if it saved the data, but nothing changes.
  3. Fill in the environment, pick it in the environment menu and send the first request.

Environment variables

VariableWhat it is
postIdThe post the single-post requests read and change.

Requests

Posts

  • GET
    List posts /posts

    All 100 posts.

  • GET
    Filter posts by user /posts

    Posts of one user, filtered with a query parameter.

  • GET
    Get a post /posts/{{postId}}

    One post by id.

  • POST
    Create a post /posts

    Answers 201 with the new post and id 101.

  • PUT
    Replace a post /posts/{{postId}}

    Replaces every field of the post.

  • PATCH
    Update a post /posts/{{postId}}

    Changes only the fields you send.

  • DELETE
    Delete a post /posts/{{postId}}

    Answers 200 with an empty object.

  • GET
    Comments on a post /posts/{{postId}}/comments

    A nested resource.

Users

  • GET
    List users /users

    Ten users with addresses and companies.

  • GET
    Todos of a user /users/1/todos

    Todos of user 1.