This task will get you to really think about the response you get back from an API. In addition, it will encourage you to use Chrome Dev Tools to examine the response you get back from a server.
Look at a request in Chrome Dev Tools
In Google Chrome, open dev tools network tab and enter this URL into the browser: http://api.tvmaze.com/shows/82/episodes
Answer the following questions:
What's the status code the server sent back?
What HTTP method did the browser use to make the request?
What is the request path?
What is the first line of the response body?
What is the value of the response header called "Content-Type" ?
What is the value of the request header called "User-Agent"
Maximum time in hours
2
How to submit
Share your answers with the other trainees in your Buddy Group or on your Slack class channel.
Did you get different answers to other people? Ask them how they worked them out!
What's the status code the server sent back?
200 ok
What HTTP method did the browser use to make the request?
GET
What is the request path?
/api
What is the first line of the response body?
array
What is the value of the response header called "Content-Type" ?
application/json; charset=utf-8
What is the value of the request header called "User-Agent"?
PostmanRuntime/7.32.3 /; Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
From Coursework-Planner created by Abubakar-Meigag: Abubakar-Meigag/Coursework-Planner#48
From Module-Node created by Dedekind561: CodeYourFuture/Module-Node#6
Link to the coursework
http://api.tvmaze.com/shows/82/episodes
Why are we doing this?
This task will get you to really think about the response you get back from an API. In addition, it will encourage you to use Chrome Dev Tools to examine the response you get back from a server.
Look at a request in Chrome Dev Tools In Google Chrome, open dev tools network tab and enter this URL into the browser: http://api.tvmaze.com/shows/82/episodes
Answer the following questions: What's the status code the server sent back? What HTTP method did the browser use to make the request? What is the request path? What is the first line of the response body? What is the value of the response header called "Content-Type" ? What is the value of the request header called "User-Agent"
Maximum time in hours
2
How to submit
Share your answers with the other trainees in your Buddy Group or on your Slack class channel. Did you get different answers to other people? Ask them how they worked them out!