In Postman, make a request to the weatherdata API. While the first two endpoint responses include text only, the weatherdata endpoint response is in JSON. (Alternatively, click the + button on the new tab and create new tabs each time.) View the format of the weatherdata response in JSON (Otherwise you'll overwrite the settings of the existing request.) Then choose your collection and request name. When you save these other endpoints, click the arrow next to Save and choose Save As. Whereas the first two endpoints (aqi and weather) are text/plain, the Accept header for the weatherdata endpoint is application/json. The Accept header tells the browser what format you will accept the response in. Make requests for the other endpointsĮnter details into Postman for the other two endpoints for the Mashape Weather API: Saved endpoints appear in the left side pane under Collections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |