Reading Room API
Get list of reading rooms based on Cql query
query | string Default: "cql.allRecords=1" A query expressed as a CQL string |
offset | integer [ 0 .. 2147483647 ] Default: 0 Skip over a number of elements by specifying an offset value for the query |
limit | integer [ 1 .. 2147483647 ] Default: 1000 Limit the number of elements returned in the response |
includeDeleted | boolean Default: false Flag to include the deleted records |
{- "readingRooms": [
- {
- "id": "string",
- "name": "string",
- "isPublic": true,
- "servicePoints": [
- {
- "value": "string",
- "label": "string"
}
], - "metadata": {
- "createdDate": "string",
- "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
- "updatedDate": "string",
- "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e"
}
}
], - "totalRecords": 0
}
reading room
id required | string <UUID> A unique reading room identifier | ||||||||
name required | string non-empty Name of the reading room | ||||||||
isPublic required | boolean A flag to determine whether a reading room is public or not | ||||||||
required | Array of objects (ServicePoint) non-empty unique Service points which are associated to Reading Room | ||||||||
Array (non-empty)
| |||||||||
object (Metadata) Metadata about creation and changes to records | |||||||||
|
{- "id": "string",
- "name": "string",
- "isPublic": true,
- "servicePoints": [
- {
- "value": "string",
- "label": "string"
}
], - "metadata": {
- "createdDate": "string",
- "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
- "updatedDate": "string",
- "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e"
}
}
{- "id": "string",
- "name": "string",
- "isPublic": true,
- "servicePoints": [
- {
- "value": "string",
- "label": "string"
}
], - "metadata": {
- "createdDate": "string",
- "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
- "updatedDate": "string",
- "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e"
}
}
Update reading room details
readingRoomId required | string <uuid> (common_uuid) Id of the reading room |
reading room
id required | string <UUID> A unique reading room identifier | ||||||||
name required | string non-empty Name of the reading room | ||||||||
isPublic required | boolean A flag to determine whether a reading room is public or not | ||||||||
required | Array of objects (ServicePoint) non-empty unique Service points which are associated to Reading Room | ||||||||
Array (non-empty)
| |||||||||
object (Metadata) Metadata about creation and changes to records | |||||||||
|
{- "id": "string",
- "name": "string",
- "isPublic": true,
- "servicePoints": [
- {
- "value": "string",
- "label": "string"
}
], - "metadata": {
- "createdDate": "string",
- "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
- "updatedDate": "string",
- "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e"
}
}
{- "id": "string",
- "name": "string",
- "isPublic": true,
- "servicePoints": [
- {
- "value": "string",
- "label": "string"
}
], - "metadata": {
- "createdDate": "string",
- "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",
- "updatedDate": "string",
- "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e"
}
}
Delete reading room
readingRoomId required | string <uuid> (common_uuid) Id of the reading room |
{- "message": "string",
- "type": "string",
- "code": "string",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
readingRoomId required | string <uuid> (common_uuid) Id of the reading room |
access Log
id | string <UUID> A unique access log identifier |
readingRoomId | string <UUID> Id of a reading room |
readingRoomName | string Name of a reading room |
servicePointId | string <UUID> Id of a servicePoint which is associated with the reading room |
userId | string <UUID> Id of a user who allows or denies the user from accessing the reading room |
patronId | string <UUID> Id of a user who wants to access the reading room |
action | string Enum: "ALLOWED" "DENIED" A field to determine whether a user is allowed to a reading room or not |
{- "id": "string",
- "readingRoomId": "string",
- "readingRoomName": "string",
- "servicePointId": "string",
- "userId": "string",
- "patronId": "string",
- "action": "ALLOWED"
}
{- "id": "string",
- "readingRoomId": "string",
- "readingRoomName": "string",
- "servicePointId": "string",
- "userId": "string",
- "patronId": "string",
- "action": "ALLOWED"
}
query | string Default: "cql.allRecords=1" A query expressed as a CQL string |
offset | integer [ 0 .. 2147483647 ] Default: 0 Skip over a number of elements by specifying an offset value for the query |
limit | integer [ 1 .. 2147483647 ] Default: 1000 Limit the number of elements returned in the response |
{- "accessLogs": [
- {
- "id": "string",
- "readingRoomId": "string",
- "readingRoomName": "string",
- "servicePointId": "string",
- "userId": "string",
- "patronId": "string",
- "action": "ALLOWED"
}
], - "totalRecords": 0
}