Top "Attributerouting" questions

Define your routes using attributes on action methods in ASP.

Query string not working while using attribute routing

I'm using System.Web.Http.RouteAttribute and System.Web.Http.RoutePrefixAttribute to enable cleaner URLs for my Web API 2 application. …

c# asp.net-web-api query-string asp.net-web-api-routing attributerouting
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
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
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
MVC Attribute Routing Not Working

I'm relatively new to the MVC framework but I do have a functioning Web Project with an API controller that …

c# asp.net-mvc asp.net-web-api attributerouting
Getting "No type was found that matches the controller named 'SampleSlashBaseService'" when trying to use WebAPI

I have a webapi project with a base ApiController named SlashBaseService: [RouteArea("uBase")] public abstract class SlashBaseService : ApiController { } The resulting …

c# .net asp.net-mvc asp.net-web-api attributerouting
Specify default controller/action route in WebAPI using AttributeRouting

How does one set the default controller to use when using AttributeRouting instead of the default RouteConfiguration that WebAPI uses. …

c# asp.net-web-api attributerouting
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
CreatedAtRoute routing to different controller

I'm creating a new webapi using attribute routing to create a nested route as so: // PUT: api/Channels/5/Messages [ResponseType(…

c# asp.net-web-api asp.net-web-api-routing attributerouting