Closed ColterLena closed 4 years ago
Hi Gavin,
Below are 4 screenshot I took for Explorer Mode of this assignment.
Here are definitions of 3 headers from "Header List for Get Brewery with ID Number 281":
Content-type Header: This header tells the client the media type for the content that it is receiving from the API.
Etag Header: This header helps the client identify specific iterations of the requested content. This feature helps the client save time and bandwidth by showing it if the content has been changed.
Strict-transport-security: This header tells web browsers that the content can only be retrieved using HTTPS as opposed to HTTP.
Best Wishes,
Colter
Get All Breweries
Get All Breweries in California
Get the Brewery with the ID Number 281
Header List for Get the Brewery with the ID Number 281
Your homework 04 - 01 - GET https://intro-to.api.com/knowledge was marked: Meets Expectations
“Well done!”
In this project, you will practice accessing an API. You'll see how an API request is made, and see how data is returned from an API
Objectives
Explorer Mode
Insomnia
tool to make a few queries of the API.Insomnia
showing your request and the response output.X-
it is a custom header and likely is documented by your API. Other headers are more standard and can be google searched.Adventure Mode
Read the documentation on this API: https://one-list-api.herokuapp.com/
Choose your access token from your first and last name. For example
jane-doe
orron-swanson
.Insomnia
to insert 6 items in the list associated with your access token. Attach screenshots of the request and results screen.Insomnia
to mark 2 of these items complete. Attach screenshots of the request and result screen.Insomnia
to delete 1 of the non-complete items. Attach screenshots of the request and result screen.Epic Mode
HttpClient
class to make requests to any of the APIs you used in Adventure mode.