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

Questions about routing within ASP.

Web API route to action name

I need a controller to return JSON to be consumed by JavaScript so I inherited from the ApiController class but …

c# asp.net-web-api asp.net-web-api-routing
How to map WebAPI routes correctly

I'm building an API for a Twitter like site using Web API and have trouble with mapping the routes I …

c# asp.net asp.net-mvc asp.net-web-api asp.net-web-api-routing
asp.net webapi 2 attribute routing not working

I have visual studio 2012 installed with mvc4 using .net framework 4.5. Now I want to use webapi2 with attribute writing and …

asp.net-web-api asp.net-web-api-routing
RoutePrefix vs Route

I understand that RoutePrefix doesn't add a route to the routing table by itself. On your actions you need to …

c# asp.net-web-api asp.net-web-api2 asp.net-web-api-routing attributerouting
Can anyone explain CreatedAtRoute() to me?

From the template for Web API 2, a post method is always like this: [ResponseType(typeof(MyDTO))] public IHttpActionResult PostmyObject(MyDTO …

c# asp.net asp.net-web-api asp.net-web-api-routing
Route parameter with slash "/" in URL

I know you can apply a wildcard in the route attribute to allow / such as date input for example: [Route("…

c# url asp.net-web-api asp.net-web-api-routing attributerouting
How to pass/receive multiple args to a RESTful Web API GET method?

The usual examples of GET RESTful methods that take a parameter (returning a scalar value rather than a dataset) are …

c# rest asp.net-web-api asp.net-4.5 asp.net-web-api-routing
Routing based on query string parameter name

I'm trying to configure routing in my MVC4 WebAPI project. I want to be able to search for products based …

c# asp.net-web-api query-string asp.net-web-api-routing
Attribute routing with optional parameters in ASP.NET Web API

I'm trying to use Web API 2 attribute routing to set up a custom API. I've got my route working such …

c# asp.net-web-api asp.net-web-api-routing attributerouting
Custom httphandler and routehandler with ASPNET MVC 4 and webapi

I'm working on an ASPNET MVC 4 and WebApi. The webapi methods will be consumed by mobile devices. We need to …

c# asp.net-mvc asp.net-mvc-4 asp.net-web-api asp.net-web-api-routing