Web API and Routes

Discussions relating to the REST API of Jiwa 7.

Web API and Routes

Postby SBarnes » Wed Sep 12, 2018 12:37 pm

Hi Mike,

One interesting thing I have discovered with ServiceStack is that it will generate DTOs even if there is no route defined for it, I am assuming this is probably if the the Service class has been registered but the route has not been added.

This can obviously be fixed by adding the route and regenerating the C# classes as the DTO and route annotations then appear.

My reason for raising this is that the error you get out of the exception on the client is a weird error about lists and indexes.

Is there a way to change the api to send a more meaningful error when no route is found?

Thanks
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1621
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 176

Return to REST API

Who is online

Users browsing this forum: No registered users and 2 guests