Web API Routes  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Web API Routes

Postby SBarnes » Wed Jan 31, 2018 10:04 am

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

Re: Web API Routes  Topic is solved

Postby Mike.Sheen » Wed Jan 31, 2018 10:12 am

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
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: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to REST API

Who is online

Users browsing this forum: No registered users and 3 guests