http://localhost:9130
Storage for staff slips
Retrieve a list of staff-slip items.
GET /staff-slips-storage/staff-slips
How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
none
Skip over a number of elements by specifying an offset value for the query
Example:
0
Limit the number of elements returned in the response. Using limit=0 will return totalRecords with the exact value. For details about totalRecords see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
10
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
by using CQL
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
id="6406fd34-9ae3-46f8-aca3-bf07455635ea"
Returns a list of staff-slip items
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Collection of staffSlips",
"type": "object",
"properties": {
"staffSlips": {
"description": "List of staffSlip items",
"id": "staffSlips",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Staff slip",
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Staff slip name",
"type": "string"
},
"description": {
"description": "Staff slip description",
"type": "string"
},
"active": {
"description": "Flag that indicates whether staff slip is active",
"type": "boolean"
},
"isRawHtml": {
"description": "Flag that indicates whether staff slip should be maintained as raw HTML rather than using the WYSIWYG editor. This has no implications for the back-end code, as is merely a note from the UI to itself.",
"type": "boolean"
},
"template": {
"description": "Staff slip template",
"type": "string"
},
"metadata": {
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
"type": "object",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"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}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"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}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
}
},
"additionalProperties": false,
"required": [
"name",
"template"
]
}
},
"totalRecords": {
"type": "integer"
}
},
"required": [
"staffSlips",
"totalRecords"
]
}
Example:
{
"staffSlips": [
{
"id": "cf23adf0-61ba-4887-bf82-956c4aae2260",
"name": "df7f4993-8c14-4a0f-ab63-93975ab01c76",
"description": "346ad017-dac1-417d-9ed8-0ac7eeb886aa",
"active": true,
"template": "cf23adf0-61ba-4887-bf82-956c4aae2260"
},
{
"id": "cf23adf0-61ba-4887-bf82-956c4aae2261",
"name": "df7f4993-8c14-4a0f-ab63-93975ab01c77",
"description": "346ad017-dac1-417d-9ed8-0ac7eeb886aa",
"active": false,
"template": "cf23adf0-61ba-4887-bf82-956c4aae2260"
}
],
"totalRecords": 2
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
unable to list staff-slips -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to list staff-slips -- unauthorized
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Not implemented yet
Create a new staff-slip item.
POST /staff-slips-storage/staff-slips
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Staff slip",
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Staff slip name",
"type": "string"
},
"description": {
"description": "Staff slip description",
"type": "string"
},
"active": {
"description": "Flag that indicates whether staff slip is active",
"type": "boolean"
},
"isRawHtml": {
"description": "Flag that indicates whether staff slip should be maintained as raw HTML rather than using the WYSIWYG editor. This has no implications for the back-end code, as is merely a note from the UI to itself.",
"type": "boolean"
},
"template": {
"description": "Staff slip template",
"type": "string"
},
"metadata": {
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
"type": "object",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"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}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"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}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
}
},
"additionalProperties": false,
"required": [
"name",
"template"
]
}
Example:
{
"id": "cf23adf0-61ba-4887-bf82-956c4aae2260",
"name": "df7f4993-8c14-4a0f-ab63-93975ab01c76",
"description": "346ad017-dac1-417d-9ed8-0ac7eeb886aa",
"active": true,
"template": "cf23adf0-61ba-4887-bf82-956c4aae2260"
}
Returns a newly created item, with server-controlled fields like 'id' populated
URI to the created staff-slip item
Media type: application/json
Type: any
Example:
{
"id": "cf23adf0-61ba-4887-bf82-956c4aae2260",
"name": "df7f4993-8c14-4a0f-ab63-93975ab01c76",
"description": "346ad017-dac1-417d-9ed8-0ac7eeb886aa",
"active": true,
"template": "cf23adf0-61ba-4887-bf82-956c4aae2260"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to add staff-slip -- malformed JSON at 13:3"
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to create staff-slips -- unauthorized
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Not implemented yet
DELETE /staff-slips-storage/staff-slips
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Not implemented yet
Retrieve staff-slip item with given {staff-slipId}
GET /staff-slips-storage/staff-slips/{staffSlipId}
Returns item with a given ID
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Staff slip",
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Staff slip name",
"type": "string"
},
"description": {
"description": "Staff slip description",
"type": "string"
},
"active": {
"description": "Flag that indicates whether staff slip is active",
"type": "boolean"
},
"isRawHtml": {
"description": "Flag that indicates whether staff slip should be maintained as raw HTML rather than using the WYSIWYG editor. This has no implications for the back-end code, as is merely a note from the UI to itself.",
"type": "boolean"
},
"template": {
"description": "Staff slip template",
"type": "string"
},
"metadata": {
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
"type": "object",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"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}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"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}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
}
},
"additionalProperties": false,
"required": [
"name",
"template"
]
}
Example:
{
"id": "cf23adf0-61ba-4887-bf82-956c4aae2260",
"name": "df7f4993-8c14-4a0f-ab63-93975ab01c76",
"description": "346ad017-dac1-417d-9ed8-0ac7eeb886aa",
"active": true,
"template": "cf23adf0-61ba-4887-bf82-956c4aae2260"
}
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"staff-slip not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Not implemented yet
Delete staff-slip item with given {staff-slipId}
DELETE /staff-slips-storage/staff-slips/{staffSlipId}
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to delete staff-slip -- constraint violation"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"staff-slip not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Not implemented yet
Update staff-slip item with given {staff-slipId}
PUT /staff-slips-storage/staff-slips/{staffSlipId}
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Staff slip",
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "Staff slip name",
"type": "string"
},
"description": {
"description": "Staff slip description",
"type": "string"
},
"active": {
"description": "Flag that indicates whether staff slip is active",
"type": "boolean"
},
"isRawHtml": {
"description": "Flag that indicates whether staff slip should be maintained as raw HTML rather than using the WYSIWYG editor. This has no implications for the back-end code, as is merely a note from the UI to itself.",
"type": "boolean"
},
"template": {
"description": "Staff slip template",
"type": "string"
},
"metadata": {
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
"type": "object",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"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}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"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}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
}
},
"additionalProperties": false,
"required": [
"name",
"template"
]
}
Example:
{
"id": "cf23adf0-61ba-4887-bf82-956c4aae2260",
"name": "df7f4993-8c14-4a0f-ab63-93975ab01c76",
"description": "346ad017-dac1-417d-9ed8-0ac7eeb886aa",
"active": true,
"template": "cf23adf0-61ba-4887-bf82-956c4aae2260"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to update staff-slip -- malformed JSON at 13:4"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"staff-slip not found"
Optimistic locking version conflict
Media type: text/plain
Type: any
Example:
version conflict
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Not implemented yet