Koha-clms/api/v1/swagger/paths
Tomas Cohen Arazi 7a4cf3569d
Bug 25502: Adapt Advanced macros routes to current guidelines
The original development started before the changes we introduced in the guidelines in late 2019, and the major code changes that took place in January 2020.

- Attribute mapping logic is now on the Koha::Object-level (the patches implement that, but are not using it)
- Related to the above, some helper methods like to_api and to_model are kept, the same for the mappings in the controller, they should all go away
- Related to the above, set_from_api and new_from_api should be used instead of using helper to_api and to_model methods in the controller
- $c->objects->search doesn't use the to_model and to_api params
- Response status codes need to be changed, at least for DELETE operations

Those are fixed by this patch.

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

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-05-19 15:21:16 +01:00
..
acquisitions_funds.json Bug 24321: Clean /acquisitions/funds 2020-01-08 14:42:28 +00:00
acquisitions_orders.json Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
acquisitions_vendors.json Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
advancededitormacros.json Bug 25502: Adapt Advanced macros routes to current guidelines 2020-05-19 15:21:16 +01:00
biblios.json Bug 24908: Add text-formatted MARC support in /biblios/{biblio_id} 2020-04-29 17:13:36 +01:00
checkouts.json Bug 17005: Add plugin parameters to /checkouts endpoint 2019-10-08 14:33:39 +01:00
circulation-rules.json Bug 18936: (follow-up) Update REST definition for /.../kinds 2020-02-04 09:56:24 +00:00
cities.json Bug 25279: Add general query parameters to the /cities route 2020-05-12 11:39:36 +01:00
clubs.json Bug 19618: Add api endpoint for club holds 2019-10-01 08:05:58 +01:00
holds.json Bug 25535: Hold API mapping maps cancellationdate to cancelation_date, but it should be cancellation_date 2020-05-19 08:30:08 +01:00
ill_backends.json Bug 22615: Add endpoint for getting one ill backend 2020-03-05 13:03:40 +00:00
illrequests.json Bug 20563: Allow display of requested partners 2019-03-15 19:33:37 +00:00
items.json Bug 23667: Add spec 2019-10-29 12:20:35 +00:00
libraries.json Bug 24321: Clean /libraries 2020-01-08 14:42:36 +00:00
oauth.json Bug 20402: Implement OAuth2 authentication for REST API 2018-05-08 15:55:42 -03:00
patrons.json Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
patrons_account.json Bug 23607: Make /patrons/:patron_id/account staff only 2019-09-27 14:00:48 +01:00
patrons_password.json Bug 17006: OpenAPI spec 2019-01-28 15:25:39 +00:00
public_patrons.json Bug 23584: Add spec for PUT /public/patron/:patron_id/guarantors 2019-09-23 10:52:39 +01:00
return_claims.json Bug 14697: (QA follow-up) Organize tests in subtests 2019-10-31 12:05:14 +00:00
rotas.json Bug 11897: Use 'stockrotation' permission for the endpoint 2018-10-09 15:46:06 +00:00