Exercise 2: Provisioning a Web API
Swagger is configured dynamically when the code is modified and provides descriptions with examples of input parameters and data schema. You do not need to waste time updating documentation manually because the documentation is generated on demand when requested from Swagger. The Swagger documentation is also generated for each available version of the API. Whenever you change the parameters or output schema or update endpoints, you should release a new version of the web API instead of changing the existing one. Meanwhile, the old versions should be accessible until the last customer migrates to the new version of your web API. Swagger also generates documentation based on the version.
- You previously deployed the DemoCatalog web API from the script. Now you can request the
/swagger
URL from your server to get the Swagger page that explains available methods, input parameters, and output schema. - On the Swagger page, you will see an operation...