Page 1 of 1

Web API Routes

PostPosted: Wed Jan 31, 2018 10:04 am
by SBarnes
Hi Mike,

Is there anywhere a document that lists the total functionality of the Web API as I remember you mentioning not all routes are turned on by default and therefore https://api.jiwa.com.au/metadata won't produce a full list?

I know you can go and extend the API with a separate plugin but I am trying to avoid reinventing the wheel and my question is sparked by needing to get details of debtor transactions.

Thanks

Re: Web API Routes  Topic is solved

PostPosted: Wed Jan 31, 2018 10:12 am
by Mike.Sheen
Hi Stuart,

We didn't provide routes for all the table queries - only the ones we thought would be most used initially. We did create the classes necessary for querying every table, so the only effort required is to add the route - the service is already handled for you - see this post for an example - just replace IN_UnitOfMeasureQuery with DB_TransQuery in that example and the route path to be /Queries/DB_Trans and you're done.

EDIT: To answer your question, the /openapi or swaggerUI is the way to see what routes are implemented.

Mike