Top "Asp.net-web-api-routing" questions

Questions about routing within ASP.

web api routing and http post

I'm building an API using WEB API 2. I have the following API controller: [RoutePrefix("api/account")] public class AccountController : ApiController { […

c# .net asp.net-web-api2 asp.net-web-api-routing
Attribute routing and inheritance

I am playing around with the idea of having a base controller that uses a generic repository to provide the …

asp.net-web-api asp.net-web-api-routing
Multiple Routes on a Controller

Was wondering if it was possible to have more than one route pointing to a WebApi controller? For example I …

c# asp.net-web-api asp.net-web-api-routing
Why can't navigate to web api controller

I use Web API for the first time to connect my mobile app to Web API. I have MVC 5 project …

asp.net-mvc asp.net-web-api asp.net-web-api2 asp.net-web-api-routing
Web API 2 routing - Route attribute

Question is regarding defining custom routes with the Route attribute. I know that in the WebApiConfig class you always define …

c# asp.net-web-api asp.net-web-api-routing
Not supported by Swagger 2.0: Multiple operations with path

I have integrated swagger in WebApi 2 application. It works fine when application has single controller. When I added second controller …

c# asp.net-web-api swagger asp.net-web-api-routing swashbuckle
Multiple Controller Types with same Route prefix ASP.NET Web Api

Is it possible to separate GETs and POSTs into separate API Controller types and accessing them using the same Route …

c# asp.net-web-api asp.net-web-api-routing attributerouting
The path template on the action in controller is not a valid OData path template

I am getting the following error: The path template 'GetClients()' on the action 'GetClients' in controller 'Clients' is not …

c# asp.net-web-api odata asp.net-web-api-routing asp.net-web-api-odata
Multiple optional parameters routing

I have the following route definition in my webapi project. I have problem one of the parameter is not passed. …

c# asp.net-mvc-4 asp.net-web-api url-routing asp.net-web-api-routing
Controller actions naming convention

As naming convention says, WebApi controller actions name should be Get(), Put(). Post() etc. But tell me if I have …

c# asp.net-web-api naming-conventions asp.net-web-api-routing