Commit 50fba5c6 authored by bensinober's avatar bensinober
Browse files

DEICH-5652 document reserve error messages in redia api doc

parent f1c4b07c
......@@ -1327,7 +1327,17 @@ Example request:
> curl --cookie "deichmanToken=$TOKEN" -XPOST -H"Content-Type:application/json" hostnam/api/holds -d '{"recordId":"9133527","branchCode":"hutl"}'
Returns 201 created if success, with the new reserve_id in the response object.
Returns 201 created if success, with the new reserve_id in the response object. If 403 forbidden it returns a json error object
Error codes:
* "ageRestricted": "Du er dessverre ikke gammel nok til å låne denne.",
* "tooManyHolds": "Du har nådd maks antall bestillinger."
* "tooManyHoldsForThisRecord": "Ikke mulig å bestille. Du har allerede bestilt denne.",
* "noHoldsForThisRecord": "Ikke mulig å bestille."
* "disallowedFormat": "Dette materialet kan ikke bestilles.",
* "noSkoleItems": "Klasselånere kan kun bestille Skoletjenestens materiale."
**POST api/holds/forOther [auth: jwt]**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment