Closed Tmoney2020 closed 4 years ago
(CF Cashe-Status - Dynamic)- CF-Cache-Status is found in the response header when a resource is cached on CloudFaire’s CDN. Dynamic means that this resource is not cached by default and there are no explicit settings configured to cache it.
(Cashe Control - No cashe- private)- Cache-control is an HTTP header used to specify browser cashing policies in both client requests and server responses. The private response directive indicates that a resource is user specific—it can still be cached, but only on a client device. The no-cache directive means that a browser may cache a response, but must first submit a validation request to an origin server.
(Accept-Ranges - BYTES)- The Accept-Ranges response HTTP header is a marker used by the server to advertise its support of partial requests. The value of this field indicates the unit that can be used to define a range. The one for this page is in Bytes.
Your homework 04 - 01 - GET https://intro-to.api.com/knowledge was marked: Meets Expectations
“With LASERS”
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.