-
Notifications
You must be signed in to change notification settings - Fork 2
/
rtac-batch.raml
64 lines (59 loc) · 2.17 KB
/
rtac-batch.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#%RAML 1.0
title: Real Time Availability Check
baseUri: https://github.com/folio-org/mod-rtac
version: v1.0
documentation:
- title: Real Time Availability Checker Integration
content: This module allows 3rd party discovery services to check for FOLIO inventory availability
types:
rtacHoldings: !include rtac-holdings.json
rtactHolding: !include rtac-holding.json
rtacHoldingsBatch: !include rtac-holdings-batch.json
inventoryHoldingsAndItems: !include inventory-hierarchy/inventory-instance-records.json
pieceFormat: !include pieces/piece_format.json
piece: !include pieces/piece.json
pieceCollection: !include pieces/piece_collection.json
requests: !include requests/requests.json
rtacRequest: !include rtac-request.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
resourceTypes:
item-collection-get: !include raml-util/rtypes/item-collection-get.raml
/rtac-batch:
displayName: RTAC Batch API
description: Batch API to get instances with items and holdings from inventory. The expectation is that the **mode of issuance "serial"** and **nature of content "journal" and "newspaper"** are present in the target system. The module uses these values to qualify an instance as a periodical.
post:
description: Retrieve holding information from inventory in a batch
is: [validate]
body:
application/json:
description: List of inventory instance identifiers
type: rtacRequest
example: !include examples/rtac-request.sample
responses:
200:
body:
application/json:
type: rtacHoldingsBatch
400:
description: "Bad request"
body:
text/plain:
example: |
"unable to process request -- constraint violation"
403:
description: "Access Denied"
body:
text/plain:
example: "Access Denied"
404:
description: "Not Found"
body:
text/plain:
example: "Not Found"
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"