ZabihollahNamazi / My-Coursework-Planner

Your coursework planner
0 stars 0 forks source link

[TECH ED] Check out an API response #87

Open ZabihollahNamazi opened 18 hours ago

ZabihollahNamazi commented 18 hours ago

Why are we doing this?

This task will get you to really think about the response you get back from an API. Use Chrome Dev Tools to examine the response you get back from the 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:

  1. What's the status code the server sent back?
  2. What HTTP method did the browser use to make the request?
  3. What is the request path?
  4. What is the first line of the response body?
  5. What is the value of the response header called "Content-Type" ?
  6. What is the value of the request header called "User-Agent"

Maximum time in hours

.5

How to submit

Share your answers with the other learners on Slack. Did you get different answers to other people? Ask them how they worked them out!

ZabihollahNamazi commented 18 hours ago

1- 304 Not Modified 2- GET 3- http://api.tvmaze.com/shows/82/episodes 4- pre tag 5- 6-Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36