This video shows how to complete the challenge `GET /todos (406)` to send a GET request for all todos but passing in an 'accept' format that the system does not support.
- Issue a `GET` request to end point "/todos"
- if running locally that endpoint would be
- `http://localhost:4567/todos`
- if running in the cloud that endpoint would be
- `https://apichallenges.herokuapp.com/t...`
- The request should have an `Accept` header with the value `application/gzip`
- The request should have an `X-CHALLENGER` header to track challenge completion
- The response status code should be `406` when all the details are valid.
- Check the body of the message has JSON formatted error message response
- Check the `content-type` header in the response has `application/json` matching the response body
Read the full solution blog post at
https://eviltester.com/apichallenges/...
Find the API Challenges here:
https://eviltester.com/apichallenges
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon / 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:
- / eviltester
- / eviltester
- / eviltester