For API versioning in routing, what is the recommended approach in ASP.NET Core?
- Use query parameters for versioning
- Include version in the request headers
- Embed version in the route URL
- Use custom HTTP headers for versioning
The recommended approach for API versioning in ASP.NET Core is to embed the API version in the route URL. This approach is commonly referred to as "URI versioning" and provides clear versioning information within the request URL, making it easy for developers and clients to understand and use different API versions.
Loading...
Related Quiz
- If you wish to limit the elements on which your custom tag helper is applied, you can set the _______ property.
- In Razor syntax, which character is used to denote the start of server-side code?
- To execute raw SQL queries in Entity Framework Core, developers can utilize the _________ method.
- How can you restrict an action method to respond only to HTTP POST requests in ASP.NET Core MVC?
- You are developing a web application with multiple views. You want to ensure a consistent look and feel across all pages. Which feature of Razor views allows you to define a common layout for your web pages?