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 ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.