Sending a request through the Swagger UI 

You can test each of the actions listed in the Swagger UI by clicking on the action name and clicking the Try it out button, as shown here:

If there are any parameters, they will be open for editing. This includes the body of the request, where you can set the values of the data contract. When you're done filling in the values, you can click on the Execute button:

After executing the request, the response will be shown together with the status code, headers, and body:

The Swagger UI is a handy tool to let developers explore your API. I found it to be a precious tool when having a team that needs to interact with the API. 

If you don't wish the Swagger file or the Swagger UI to be available outside of development mode, then you can surround the code that enables it in the Configure method with an 
if(env.IsDevelopement()){...} block.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.156.107