POST works fine with this. Standard MVC controllers ok too. But I do have an issue with GET for a single item, which I have detailed in a separate post, if this is a connected symptom.
The data types of tenantidentifier and id are both guid.
I have also deployed it out of the dev environment to IIS to see if this is some issue.
Ok. Just spotted that the optional parameter type has changed from mvc routes. id =
UrlParameter.Optional is incorrect and should for web api id = RouteParameter.Optional
benaw
Member
211 Points
95 Posts
Are there any know issues with PUT?
Feb 29, 2012 10:34 PM|LINK
Seem to be having an issue routing to the method. 404 is being returned.
The route is slightly different to the starter examples, as follows:
POST works fine with this. Standard MVC controllers ok too. But I do have an issue with GET for a single item, which I have detailed in a separate post, if this is a connected symptom.
The data types of tenantidentifier and id are both guid.
I have also deployed it out of the dev environment to IIS to see if this is some issue.
marcind
Contributor
3344 Points
609 Posts
Microsoft
Re: Are there any know issues with PUT?
Feb 29, 2012 11:14 PM|LINK
What does your controller look like and how is the tenentidentifier token used?
ASP.NET Team
@marcind
Blog
benaw
Member
211 Points
95 Posts
Re: Are there any know issues with PUT?
Mar 01, 2012 04:13 AM|LINK
this is the interface:
interface IProductsController { Dto.product Delete(Guid tenantidentifier, Guid id); IQueryable<Dto.product> Get(Guid tenantidentifier); HttpResponseMessage<Dto.product> Post(Guid tenantidentifier, Dto.product product); Dto.product Put(Guid tenantidentifier, Guid id, Dto.product product); }benaw
Member
211 Points
95 Posts
Re: Are there any know issues with PUT?
Mar 01, 2012 04:06 PM|LINK
Ok. Just spotted that the optional parameter type has changed from mvc routes. id = UrlParameter.Optional is incorrect and should for web api id = RouteParameter.Optional
Hasn't solved the PUT issue though.
benaw
Member
211 Points
95 Posts
Re: Are there any know issues with PUT?
Mar 06, 2012 12:59 PM|LINK
This issue extends to the verb DELETE and relates the configuration of http modules or handlers that are used for web api requests.