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

Questions about routing within ASP.

Multiple controllers with same URL routes but different HTTP methods

I've got a following two controllers: [RoutePrefix("/some-resources") class CreationController : ApiController { [HttpPost, Route] public ... CreateResource(CreateData input) { // ... } } [RoutePrefix("/some-resources") class …

c# asp.net-web-api asp.net-web-api2 asp.net-web-api-routing attributerouting
No routing convention was found to select an action for the OData path with template '~/entityset'

I have two Odata action methods defined. The one with parameter gets invoked while the other without parameter doesnt get …

c#-4.0 asp.net-web-api odata asp.net-web-api-routing odata4j
Web Api Controller in other project, route attribute not working

I have a solution with two projects. One Web Api bootstap project and the other is a class library. The …

c# asp.net-web-api asp.net-web-api2 asp.net-web-api-routing attributerouting
How to send an array via a URI using Attribute Routing in Web API?

I'm following the article on Attribute Routing in Web API 2 to try to send an array via URI: [HttpPost("api/…

asp.net-web-api routes asp.net-web-api-routing
Pass decimal as value in WebAPI 2 URL

I am creating a Web Api (v2.0) Method that needs to take in a decimal value as its parameter. I …

c# asp.net-web-api2 asp.net-web-api-routing
Asp.Net MVC4 + Web API Controller Delete request >> 404 error

I have a VS2012 MVC4 solution where I test Web API Controllers. I successfully tested the GET, POST, PUT but …

c# asp.net asp.net-mvc asp.net-web-api asp.net-web-api-routing
Combining route mappings in WebApi

I am using routing in my WebApi Katana application. I have the following two route mappings that work fine. My …

c# asp.net-web-api owin asp.net-web-api-routing katana
Web Api 2 global route prefix for route attributes?

I'd like to expose a company's api by two ways: api.company.com (pure WebApi web site) company.com/api (…

asp.net-mvc asp.net-web-api asp.net-web-api-routing
asp.net webapi: how to pass optional parameters?

I am using the new asp.net web api and would like to pass optional parameters. Is it correct that …

c# asp.net asp.net-web-api asp.net-web-api-routing
composite key resource REST service

I've come across a problem at work where I can't find information on the usual standard or practice for performing …

rest asp.net-web-api composite-key asp.net-web-api-routing attributerouting