Solution: API Calls with curl
Explore how to use the curl command-line tool to retrieve API responses from various services and save them to disk. Learn to manage multiple API calls, execute commands to view saved data, and organize the output files effectively for later reference.
We'll cover the following...
We'll cover the following...
Solution
The challenge was to use the curl command-line tool to pull a series of responses from three related services (Company, Account, and Activity) and save them to the disk for later reference.
-
First, move to the folder called
services. -
Modify the API name in line-2 of
index.jsfile. Currently, we have written./company-home. You can update it to any filename that is provided in the ...