Efficiently updating debtors  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Efficiently updating debtors

Postby mls » Fri Feb 21, 2025 12:34 pm

Hi,

Is there any way to update a debtor via the API without returning the full debtor DTO model?

The issue is that some debtors in our system have lots of large documents which are being returned for simple update requests.

Mike
mls
Occasional Contributor
Occasional Contributor
 
Posts: 17
Joined: Tue Jul 05, 2022 5:50 am
Topics Solved: 1

Re: Efficiently updating debtors  Topic is solved

Postby Mike.Sheen » Fri Feb 21, 2025 9:09 pm

mls wrote:Hi,

Is there any way to update a debtor via the API without returning the full debtor DTO model?

The issue is that some debtors in our system have lots of large documents which are being returned for simple update requests.

Mike


Yep - a simple plugin can add a response filter to null out the values you don't want to see - or even everything if that's what you want.

I'd probably want to make that an opt-in behaviour in case other things now or in the future expect the standard DTO in the response - so perhaps a request header indicating to make the response DTO skinny.
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 Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest