Question: REST APIs and Postman Background You are a developer at a large company and are helping build an application that needs to access corporate

REST APIs and Postman Background You are a developer at a large company and are helping build an application that needs to access corporate data (i.e. employee and department data). The human resources team has sent you a URL to a REST API they developed that provides this data. You would like to dig into how this API works by making sample requests, as well as make it easier for you and your team to make requests to this API in the future. The URL you have been sent is http://ec2-3-15-40-118.us-east-2.compute.amazonaws.com:8080 Assignment Create a Postman collection that includes various requests to the Corporate API. Be sure to do the following: Store the base API URL in an environment variable In each request, access the base URL via the environment variable Give each request in the collection an appropriate name Include a request for retrieving all departments Include a request for retrieving the department with an ID of 6 Include a request for creating a new department named "Customer Service" Include a request for deleting the "Enterprise Sales" department Include a request for renaming the "Finance" department to "Finance and Accounting" Include a request for retrieving all employees with the last name "Lee" Include a request for retrieving all employees in the "IT" department Include a request for creating a new employee named "John Smith" in the "Marketing" department Include a request for moving the employee with an ID of 2 to the "Manufacturing" department Include a request for deleting the employee "Richard Boyd" Export both the collection and environment as separate JSON files using the latest format Additional Information The Corporate API exposes Swagger documentation, which provides an overview of all the functionality that the API offers. It should be reviewed to help format requests correctly. The Swagger documentation is available at http://ec2-3- 15-40-118.us-east-2.compute.amazonaws.com:8080/swagger-ui.html While the Corporate API always returns the correct responses, it will not actually modify any data. For example, deleting an employee will return a 201, but not actually delete it. This is so the corporate data is consistent for this lab and is not indicative of how a real API would behave. The web version of Postman can be found here: https://web.postman.co Steps for exporting Postman data be found here: https://learning.postman.com/docs/getting-started/importing-and- exporting-data/#exporting-postman-data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
