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

Benjamin Rokseth <benjamin.roks...@kul.oslo.kommune.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #68549|0                           |1
        is obsolete|                            |

--- Comment #159 from Benjamin Rokseth <benjamin.roks...@kul.oslo.kommune.no> 
---
Created attachment 68564
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68564&action=edit
Bug 7317: (followup) Migrate endpoint to OpenAPI

This patch moves the current endpoint implementation from Swagger2 to
the OpenAPI plugin.

It also takes advantage of the overloaded Koha::Illrequest::TO_JSON method
which has now the option to embed what's needed for the REST api.

The path spec is adjusted to fit OpenAPI, and some minor fixes are
applied:
- Missing 'metadata' query param
- 'ill' permissions should be required instead of 'borrowers'
- Full test coverage

To test:
- Apply  this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/illrequests.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomasco...@theke.io>

Signed-off-by: Magnus Enger <mag...@libriotech.no>
Signed-off-by: Tomas Cohen Arazi <tomasco...@theke.io>
Signed-off-by: Benjamin Rokseth <benjamin.roks...@kul.oslo.kommune.no>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to