Web API and Debtor Systems  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Web API and Debtor Systems

Postby SBarnes » Mon Oct 28, 2019 9:44 pm

Unless I've missed something am I correct in assuming Debtor Systems are not part of the Web API and it would need to be extended in a plugin to provide the functionality?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1618
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Web API and Debtor Systems  Topic is solved

Postby Mike.Sheen » Wed Oct 30, 2019 5:04 pm

The management of the Debtor System Templates currently has no exposure by the standard API plugin, and the business logic for the Debtor System Templates currently has no implementation of the IJiwaDTOSerialisable or IJiwaDTODeserialisable interfaces - so you'd have to define a DTO and write the chunk of code to process the DTO and set / get the properties of the business logic accordingly - it's fairly straightforward stuff but would be better if we bake it in standard.

The management of Debtor Systems for a debtor is possible via the debtor routes - and including the debtor system information in the DTO for the debtor... so currently with the standard plugin:

  • GET /Debtors/{DebtorID} will return the debtor system information within the DTO
  • POST /Debtors will allow you to provide debtor system information when creating a debtor
  • PATCH /Debtors will allow you to add new debtor systems to a debtor, or modify existing debtor systems for a debtor

What's missing is a way to delete a debtor system from a debtor, or discrete routes for operating on debtor systems for a debtor.

One could add the routes to manage specifically the debtor system information for a specific debtor - much like Contact names - /Debtors/{DebtorID}/ContactNames/{ContactNameID} - it would be pretty close to a copy of that for debtor systems.

We should probably expand our standard plugin so the API does what is needed - so improvements DEV-7871 and DEV-7872 added.
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: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest

cron