Koha-clms/api/v1/swagger
Tomas Cohen Arazi c85ae52c22 Bug 24908: Add text-formatted MARC support in /biblios/{biblio_id}
This patch makes the route support requesting (through the Accept
header) the MARC record to be output as formatted text as in
$record->as_formatted.

To test:
1. Apply the unit tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/biblios.t
=> FAIL: Tests fail
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Try the route with your favourite API testing tool (Postman?)
=> SUCCESS: Accept: text/plain returns the expected results
=> SUCCESS: Wrong Accept header returns a list of valid formats, and
includes 'text/plain'.
6. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
2020-05-08 22:37:37 +00:00
..
definitions Bug 14697: Add routes to handle return claims 2019-10-31 12:04:13 +00:00
parameters Bug 19618: Add api endpoint for club holds 2019-10-01 08:05:58 +01:00
paths Bug 24908: Add text-formatted MARC support in /biblios/{biblio_id} 2020-05-08 22:37:37 +00:00
definitions.json Bug 14697: Add routes to handle return claims 2019-10-31 12:04:13 +00:00
parameters.json Bug 19618: Add api endpoint for club holds 2019-10-01 08:05:58 +01:00
paths.json Bug 14697: Add routes to handle return claims 2019-10-31 12:04:13 +00:00
swagger.json Bug 18137: Remove x-mojo-around-action 2017-09-21 11:27:05 -03:00
x-primitives.json Bug 19661: REST API - Funds Endpoint 2019-03-22 19:40:36 +00:00