[Koha-bugs] [Bug 32939] Have a generic fetch function for POST and PUT requests in vue modules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 14 17:17:00 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32939

--- Comment #4 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 146642
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146642&action=edit
Bug 32939: Have a generic fetch function for POST and PUT requests in vue
modules

- Cleaned up the code and further extended the implementation concept on
agreements only.
- Jonathan I followed your suggestions but had to keep async/await or the catch
will not work if an error is thrown from the http-client
- I'm keeping this as a separate patch for diff check (intention is to squash
all of it once we're happy)
- I plan on continuing with this in coming days but more feedback is always
welcome, also plan on rebasing this to 32925

Later:
- api-client.js should be renamed to erm-api-client.js (or something of the
sort) but I kept the same name for now for diff check
- erm.js will ultimately disappear once this is all done (or api-client.js will
become erm.js)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list