Загрузка страницы

API Testing Challenge 20 - How To - POST todos to create a TODO using XML

How to complete the challenge `POST /todos XML` to send a POST request to create a todo item with body and response in XML format.

Issue a POST request on the `/todos` end point to create a todo using Content-Type `application/xml`, and Accepting only XML ie. Accept header of `application/xml`

- `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/xml` means set the `content-type` header to `application/xml`
- `Accept header` of `application/xml` means set the `accept` header to `application/xml`
- 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

For a write up of this solution, check out the blog post:

https://eviltester.com/apichallenges/howto/20-post-todos-xml

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 20 - How To - POST todos to create a TODO using XML канала EvilTester - Software Testing
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
17 июля 2021 г. 18:26:16
00:02:45
Яндекс.Метрика