Koha/api/v1/swagger/paths
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
..
acquisitions_funds.json Bug 19661: Add and change properties and parameters to conform to the funds RFC. 2019-03-22 19:40:37 +00:00
acquisitions_vendors.json Bug 23858: (follow-up) Return code fix 2019-10-28 12:36:46 +00:00
biblios.json Bug 23677: OpenAPI spec for GET /biblios/{biblio_id} 2019-10-08 14:33:34 +01:00
checkouts.json Bug 17005: Add plugin parameters to /checkouts endpoint 2019-10-08 14:33:39 +01:00
cities.json
clubs.json Bug 19618: Add api endpoint for club holds 2019-10-01 08:05:58 +01:00
holds.json Bug 23517: Add a spec for PUT /holds/{hold_id}/priority 2019-09-23 11:51:58 +01: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 16497: (follow-up) GET operations require staff access 2019-02-19 13:52:14 +00:00
oauth.json
patrons.json Bug 22216: Make GET /patrons/{patron_id} staff only 2019-02-22 13:15:11 +00:00
patrons_account.json Bug 23607: Make /patrons/:patron_id/account staff only 2019-09-27 14:00:48 +01:00
patrons_password.json
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: (follow-up) Rely on the UNIQUE constraint and return 409 for issue_id 2019-10-31 12:04:55 +00:00
rotas.json