Web API Route Issue  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Web API Route Issue

Postby SBarnes » Fri May 25, 2018 1:47 pm

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.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1620
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Web API Route Issue  Topic is solved

Postby Mike.Sheen » Fri May 25, 2018 9:34 pm

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757


Return to REST API

Who is online

Users browsing this forum: No registered users and 4 guests

cron