On May 25, 2021, the .Net team released ASP.Net 6 Preview 4. You can see the announcement in the below URL.
One of the nice feature is the ability to create Minimal APIs. Find a walkthrough that demonstrate how you can create a minimal API.
The below is the youtube video link. https://youtu.be/07dc1rySZEg
Watch the video and try this feature. I request you to share the comments. Thank you