http://localhost:9130
End patron action session
POST /circulation/end-patron-action-session
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "List of requests to end patron action sessions",
"properties": {
"endSessions": {
"description": "List of requests to end patron action sessions",
"id": "endSessions",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Request to end patron action session",
"properties": {
"patronId": {
"type": "string",
"description": "Id of a patron whose session is to be ended, UUID",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"actionType": {
"type": "string",
"description": "Defines action type for session that is to be ended",
"enum": [
"Check-out",
"Check-in"
]
}
},
"required": [
"patronId",
"actionType"
]
}
},
"totalRecords": {
"type": "integer"
}
},
"required": [
"endSessions",
"totalRecords"
]
}
Example:
{
"endSessions": [
{
"actionType":"Check-in",
"patronId":"e63273e7-48f5-4c43-ab4e-1751ecacaa21"
},
{
"actionType":"Check-in",
"patronId":"54f65a75-f35b-4f56-86a6-fa4a3d957e57"
}
],
"totalRecords": 2
}
Sessions have been successfully ended
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error