Define your routes using attributes on action methods in ASP.
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 attributeroutingI 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 attributeroutingI 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 attributeroutingI'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 attributeroutingI'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 attributeroutingI 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 attributeroutingHow does one set the default controller to use when using AttributeRouting instead of the default RouteConfiguration that WebAPI uses. …
c# asp.net-web-api attributeroutingIs 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 attributeroutingI'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...guess I'm the first to ask about this one? Say you have the following routes, each declared on a different …
asp.net-mvc-5 attributerouting asp.net-mvc-controller asp.net-mvc-5.1