Koha/api/v1/swagger
Tomas Cohen Arazi 40e841da98
Bug 14697: (follow-up) Rely on the UNIQUE constraint and return 409 for issue_id
This patch avoids querying the DB for an already existing
Koha::Checkouts::ReturnClaim with the same issue_id, now that there's a
UNIQUE constraint on it.

Also, 409 should be returned instead. Tests added for this changes.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/return_claims.t
=> SUCCESS: tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Lisette Scheer <lisetteslatah@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-31 12:04:55 +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 14697: (follow-up) Rely on the UNIQUE constraint and return 409 for issue_id 2019-10-31 12:04:55 +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