API Testing Challenge 21 - How To - POST todos to create a todo with JSON
How to complete the challenge `POST /todos JSON` to send a POST request to create a todo item with body and response in JSON format.
Issue a POST request on the `/todos` end point to create a todo using Content-Type `application/json`, and Accepting only JSON ie. Accept header of `application/json`
- `POST` request means we will send information in the body of the message
- e.g. `POST /todos` sends to the todos endpoint
- `create a todo` means that we will not include a todo `id`, so a new todo is created
- `Content-Type` `application/json` means set the `content-type` header to `application/json` because we are sending a JSON formatted message
- `Accept header` of `application/json` means set the `accept` header to `application/json` so the response is formatted as JSON
- the body of the message will have to be a valid todo item, and we can see the format in the documentation, or by issuing a `GET` request on the `/todos` endpoint
- add the `X-CHALLENGER` header to track progress
- we know it has been created when we receive a `201` response
- the body of the response should contain the full details of the `todo` created in JSON format
For a write up of this solution, check out the blog post:
https://eviltester.com/apichallenges/howto/21-post-todos-json
Find the API Challenges here:
https://eviltester.com/apichallenges
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon https://patreon.com/eviltester (watch my videos ad free and receive extra content)
I blog at https://eviltester.com/blog
Learn more about my books and online training at:
- https://eviltester.com
Follow me on:
- https://twitter.com/eviltester
- https://instagram.com/eviltester
- https://facebook.com/eviltester
Видео API Testing Challenge 21 - How To - POST todos to create a todo with JSON канала EvilTester - Software Testing
Issue a POST request on the `/todos` end point to create a todo using Content-Type `application/json`, and Accepting only JSON ie. Accept header of `application/json`
- `POST` request means we will send information in the body of the message
- e.g. `POST /todos` sends to the todos endpoint
- `create a todo` means that we will not include a todo `id`, so a new todo is created
- `Content-Type` `application/json` means set the `content-type` header to `application/json` because we are sending a JSON formatted message
- `Accept header` of `application/json` means set the `accept` header to `application/json` so the response is formatted as JSON
- the body of the message will have to be a valid todo item, and we can see the format in the documentation, or by issuing a `GET` request on the `/todos` endpoint
- add the `X-CHALLENGER` header to track progress
- we know it has been created when we receive a `201` response
- the body of the response should contain the full details of the `todo` created in JSON format
For a write up of this solution, check out the blog post:
https://eviltester.com/apichallenges/howto/21-post-todos-json
Find the API Challenges here:
https://eviltester.com/apichallenges
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon https://patreon.com/eviltester (watch my videos ad free and receive extra content)
I blog at https://eviltester.com/blog
Learn more about my books and online training at:
- https://eviltester.com
Follow me on:
- https://twitter.com/eviltester
- https://instagram.com/eviltester
- https://facebook.com/eviltester
Видео API Testing Challenge 21 - How To - POST todos to create a todo with JSON канала EvilTester - Software Testing
Показать
Комментарии отсутствуют
Информация о видео
17 июля 2021 г. 18:47:03
00:02:12
Другие видео канала
DEPRECATED - see description for new video - How to Install Java JDK on WindowsAPI Challenges Simulation Walkthrough using PostmanAPI Testing Challenges 33 - How To - GET authorized secret note 200API Challenges - POST Challenger 201 DebriefAPI Testing Challenges 30 - How To - basic authentication passed 201Automating Tic Tac Toe JavaScript Game from Browser ConsoleExploratory Testing Government Style - The Evil Tester Show PodcastJava For Testers, learn to code differentlyIntroducing The Observatron a new Exploratory Testing Screenshot taking toolTopics for Free Selenium WebinarsEpisode 007 - Finding Tools Special 2019 - The Evil Tester ShowCommonsense Agile - an Agile Coach and Mentor Explains Agile Testing and DevelopmentHow to Use Console 2Selenium WebDriver Sporting Event TributeAPI Testing Challenge 16 - How To - GET todos any 200Which test entities help testing - Test cases, scripts, conditions or scenarios?Overview of the Tools For Selenium WebDriver InstallA short overview of the Postman REST API GUI ClientAutomating Tactically vs Strategically SauceCon 2020 Preview15 Minute Speedrun Install Of Selenium WebDriver With Java And Maven For Windows XPAn essential aspect of Exploratory Testing is the Debrief #Shorts