Page 1 of 1

Web API Route Issue

PostPosted: Fri May 25, 2018 1:47 pm
by SBarnes
Hi Mike,

Just came across an interesting issue with the web api and I am not sure if there is a way of solving this, if you register a service and then add a route but there isn't that combination available i.e. Service1234 doesn't have a method that is a Get function that takes a parameter of type abcd but both the service and parameter type exist everything will of course compile but the when you start the service you get an error displayed at the top of the metadata page and unfortunately the error isn't very meaningful or helpful in finding the problem, you have to use trial and error of commenting out the add routs to find it.

Re: Web API Route Issue  Topic is solved

PostPosted: Fri May 25, 2018 9:34 pm
by Mike.Sheen
Hi Stuart,

Are you able to provide an example to reproduce this?

I've tried registering a service with just a POST operation for a custom DTO class and don't seem to have the same issue.

Mike