Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
50fba5c6
Commit
50fba5c6
authored
Apr 28, 2021
by
bensinober
Browse files
DEICH-5652
document reserve error messages in redia api doc
parent
f1c4b07c
Changes
1
Hide whitespace changes
Inline
Side-by-side
redia-api/README.md
View file @
50fba5c6
...
...
@@ -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]**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment