Skip to content

Instantly share code, notes, and snippets.

@olivierodo
Created March 22, 2021 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivierodo/b67c5b25f88dfb0990f3d73ee8034e87 to your computer and use it in GitHub Desktop.
Save olivierodo/b67c5b25f88dfb0990f3d73ee8034e87 to your computer and use it in GitHub Desktop.
RestQA - Generate scenario from curl
Given I have the api gateway hosted on "https://jsonplaceholder.typicode.com"
And I have the path "/todos/1"
And I have the method "GET"
When I run the API
Then I should receive a response with the status 200
And the response body should be equal to:
"""
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment