{
  "environment": {
    "base": "https://jsonplaceholder.typicode.com"
  },
  "tests": [
    {
      "name": "get first todo",
      "method": "GET",
      "url": "{{base}}/todos/1",
      "verbose": true,
      "assertions": [
        "{{r.status}} == 200",
        "{{r.headers.content-length}} > 0",
        "\"{{r.headers.content-type}}\" == \"application/json; charset=utf-8\"",
        "\"{{r.body.title}}\" == \"delectus aut autem\""
      ],
      "outputs": {
        "title": "{{r.body.title}}",
        "userId": "{{r.body.userId}}"
      }
    },
    {
      "name": "get posts using last steps userId from last step",
      "method": "GET",
      "url": "{{base}}/posts?userId={{userId}}",
      "verbose": true,
      "assertions": [
        "{{userId}} == 1",
        "\"{{title}}\" == \"delectus aut autem\"",
        "{{r.status}} == 200",
        "\"{{r.headers.content-type}}\" == \"application/json; charset=utf-8\"",
        "\"{{r.body.[0].title}}\" == \"sunt aut facere repellat provident occaecati excepturi optio reprehenderit\""
      ],
      "outputs": {}
    }
  ]
}