https://github.com/folio-org/mod-kb-ebsco-java
Implements the eholdings interface using EBSCO KB as backend.
Get a collection of KB credentials.
GET /eholdings/kb-credentials
OK
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Schema",
"description": "KB Credentials Collection Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsCollection",
"additionalProperties": false,
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Collection of KB Credentials",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Schema",
"description": "KB Credentials Collection Item Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentials",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsDataAttributes",
"additionalProperties": false,
"extends": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"description": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
},
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
},
"required": [
"name",
"customerId",
"url"
]
},
"meta": {
"type": "object",
"description": "Metadata about creation and changes to item",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"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"
]
}
},
"required": [
"type",
"attributes"
]
}
},
"meta": {
"type": "object",
"description": "Metadata containing total size of collection",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Metadata total results Schema",
"javaType": "org.folio.rest.jaxrs.model.MetaTotalResults",
"additionalProperties": false,
"properties": {
"totalResults": {
"type": "integer",
"description": "Total number of results",
"example": 2
}
},
"required": [
"totalResults"
]
},
"jsonapi": {
"type": "object",
"description": "Version of JSON:API",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
},
"required": [
"data",
"meta",
"jsonapi"
]
}
Example:
{
"data": [
{
"id": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts",
"apiKey": "****************************************",
"url": "YYYY",
"customerId": "ZZZZ"
},
"metadata": {
"createdDate": "2020-03-17T15:22:04.098",
"updatedDate": "2020-03-17T15:23:04.098+0000",
"createdByUserId": "1f8f660e-7dc9-4f6f-828f-96284c68a250",
"updatedByUserId": "6893f51f-b40c-479d-bd78-1704ab5b802b",
"createdByUsername": "john_doe",
"updatedByUsername": "jane_doe"
}
}
],
"meta": {
"totalResults": 1
},
"jsonapi": {
"version": "1.0"
}
}
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
Invalid token
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Create KB credentials
POST /eholdings/kb-credentials
Example:
application/vnd.api+json
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "POST Request To KB Credentials Collection Schema",
"description": "POST Request To KB Credentials Collection Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsPostRequest",
"additionalProperties": false,
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "KB Credentials object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentials",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsDataAttributes",
"additionalProperties": false,
"extends": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"description": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
},
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
},
"required": [
"name",
"customerId",
"url"
]
},
"meta": {
"type": "object",
"description": "Metadata about creation and changes to item",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"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"
]
}
},
"required": [
"type",
"attributes"
]
}
},
"required": [
"data"
]
}
Example:
{
"data": {
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts",
"apiKey": "XXXX",
"url": "YYYY",
"customerId": "ZZZZ"
}
}
}
Created
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Schema",
"description": "KB Credentials Collection Item Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentials",
"additionalProperties": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsDataAttributes",
"additionalProperties": false,
"extends": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"description": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
},
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
},
"required": [
"name",
"customerId",
"url"
]
},
"meta": {
"type": "object",
"description": "Metadata about creation and changes to item",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"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"
]
}
},
"required": [
"type",
"attributes"
]
}
Example:
{
"id": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts",
"apiKey": "****************************************",
"url": "YYYY",
"customerId": "ZZZZ"
},
"metadata": {
"createdDate": "2020-03-17T15:22:04.098",
"updatedDate": "2020-03-17T15:23:04.098+0000",
"createdByUserId": "1f8f660e-7dc9-4f6f-828f-96284c68a250",
"updatedByUserId": "6893f51f-b40c-479d-bd78-1704ab5b802b",
"createdByUsername": "john_doe",
"updatedByUsername": "jane_doe"
}
}
Bad Request
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "duplicate key value violates unique constraint \"kb_credentials_pkey\"",
"detail": "Key (id)=(11111111-1111-1111-a111-111111111111) already exists."
}
],
"jsonapi": {
"version": "1.0"
}
}
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
Invalid token
Unprocessable Entity
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Invalid KB API Credentials",
"detail": "Kb api credentials are invalid"
}
],
"jsonapi": {
"version": "1.0"
}
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Get a specific KB credentials by id.
GET /eholdings/kb-credentials/{id}
OK
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Schema",
"description": "KB Credentials Collection Item Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentials",
"additionalProperties": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsDataAttributes",
"additionalProperties": false,
"extends": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"description": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
},
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
},
"required": [
"name",
"customerId",
"url"
]
},
"meta": {
"type": "object",
"description": "Metadata about creation and changes to item",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"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"
]
}
},
"required": [
"type",
"attributes"
]
}
Example:
{
"id": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts",
"apiKey": "****************************************",
"url": "http://api.url.com",
"customerId": "ZZZZ"
},
"metadata": {
"createdDate": "2020-03-17T15:22:04.098",
"updatedDate": "2020-03-17T15:23:04.098+0000",
"createdByUserId": "1f8f660e-7dc9-4f6f-828f-96284c68a250",
"updatedByUserId": "6893f51f-b40c-479d-bd78-1704ab5b802b",
"createdByUsername": "john_doe",
"updatedByUsername": "jane_doe"
}
}
Bad Request
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Invalid id '99999999-9999-2-9999-999999999999'"
}
],
"jsonapi": {
"version": "1.0"
}
}
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
Invalid token
Not Found
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "KB credentials with id '99999999-9999-9999-9999-999999999999' not found"
}
],
"jsonapi": {
"version": "1.0"
}
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Update KB credentials
PATCH /eholdings/kb-credentials/{id}
Example:
application/vnd.api+json
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials PATCH Request Schema",
"description": "KB Credentials PATCH Request Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsPatchRequest",
"additionalProperties": false,
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "Patch request data object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Patch Request Data Object Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsPatchRequestData",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB Credentials Patch Request Data Object Attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Patch Request Data Object Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsPatchRequestDataAttributes",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
}
}
},
"required": [
"type",
"attributes"
]
}
},
"required": [
"data"
]
}
Example:
{
"data": {
"id": "99999999-9999-9999-9999-999999999999",
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts"
}
}
}
No Content
Bad Request
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Duplicate Name",
"detail": "KB credentials with name 'Credentials' already exists."
}
],
"jsonapi": {
"version": "1.0"
}
}
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
Invalid token
Unprocessable Entity
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "KB credentials with id '99999999-9999-9999-9999-999999999999' not found"
}
],
"jsonapi": {
"version": "1.0"
}
}
Unprocessable Entity
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Invalid KB API Credentials",
"detail": "Kb api credentials are invalid"
}
],
"jsonapi": {
"version": "1.0"
}
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Update KB credentials
PUT /eholdings/kb-credentials/{id}
Example:
application/vnd.api+json
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials PUT Request Schema",
"description": "KB Credentials PUT Request Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsPutRequest",
"additionalProperties": false,
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "KB Credentials object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentials",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsDataAttributes",
"additionalProperties": false,
"extends": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"description": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
},
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
},
"required": [
"name",
"customerId",
"url"
]
},
"meta": {
"type": "object",
"description": "Metadata about creation and changes to item",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"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"
]
}
},
"required": [
"type",
"attributes"
]
}
},
"required": [
"data"
]
}
Example:
{
"data": {
"id": "99999999-9999-9999-9999-999999999999",
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts",
"apiKey": "XXXX",
"url": "YYYY",
"customerId": "ZZZZ"
}
}
}
No Content
Bad Request
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Duplicate Name",
"detail": "KB credentials with name '11111111-1111-1111-a111-111111111111' already exists."
}
],
"jsonapi": {
"version": "1.0"
}
}
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
Invalid token
Not Found
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "KB credentials with id '99999999-9999-9999-9999-999999999999' not found"
}
],
"jsonapi": {
"version": "1.0"
}
}
Unprocessable Entity
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Invalid KB API Credentials",
"detail": "Kb api credentials are invalid"
}
],
"jsonapi": {
"version": "1.0"
}
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Delete KB Credentials
DELETE /eholdings/kb-credentials/{id}
No Content
Bad Request
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Credentials have related records and cannot be deleted"
}
],
"jsonapi": {
"version": "1.0"
}
}
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
Invalid token
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Get a specific KB credentials key by id.
GET /eholdings/kb-credentials/{id}/key
OK
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Schema",
"description": "KB Credentials Key Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKey",
"additionalProperties": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentialsKey"
],
"example": "kbCredentialsKey"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
}
},
"required": [
"type",
"attributes"
]
}
Example:
{
"id": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"type": "kbCredentialsKey",
"attributes": {
"apiKey": "api_key"
}
}
Bad Request
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Invalid id '99999999-9999-2-9999-999999999999'"
}
],
"jsonapi": {
"version": "1.0"
}
}
Not Found
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "KB credentials with id '99999999-9999-9999-9999-999999999999' not found"
}
],
"jsonapi": {
"version": "1.0"
}
}
Instance of a KB credentials by given assigned user
Retrieve KB credentials by given assigned user
GET /eholdings/user-kb-credential
OK
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Schema",
"description": "KB Credentials Collection Item Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentials",
"additionalProperties": false,
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The UUID of entry",
"examples": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"type": {
"type": "string",
"description": "Type of resource",
"enum": [
"kbCredentials"
],
"example": "kbCredentials"
},
"attributes": {
"type": "object",
"description": "KB credentials collection item attributes",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Collection Item Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsDataAttributes",
"additionalProperties": false,
"extends": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "KB Credentials Key Data Attributes Schema",
"description": "KB Credentials Key Data Attributes Schema",
"javaType": "org.folio.rest.jaxrs.model.KbCredentialsKeyDataAttributes",
"additionalProperties": false,
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "The API key of the credentials",
"examples": "XXXX"
}
},
"required": [
"apiKey"
]
},
"properties": {
"name": {
"type": "string",
"description": "The unique name of the credentials",
"examples": "University of Massachusetts - Amherst"
},
"customerId": {
"type": "string",
"description": "The customer id of the credentials",
"examples": "customerid"
},
"url": {
"type": "string",
"description": "The API endpoint of the credentials",
"examples": "https://api.com"
}
},
"required": [
"name",
"customerId",
"url"
]
},
"meta": {
"type": "object",
"description": "Metadata about creation and changes to item",
"readonly": true,
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"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"
]
}
},
"required": [
"type",
"attributes"
]
}
Example:
{
"id": "2ffa1940-2cf6-48b1-8cc9-5e539c61d93f",
"type": "kbCredentials",
"attributes": {
"name": "University of Massachusetts",
"apiKey": "XXXX",
"url": "****************************************",
"customerId": "ZZZZ"
},
"metadata": {
"createdDate": "2020-03-17T15:22:04.098",
"updatedDate": "2020-03-17T15:23:04.098+0000",
"createdByUserId": "1f8f660e-7dc9-4f6f-828f-96284c68a250",
"updatedByUserId": "6893f51f-b40c-479d-bd78-1704ab5b802b",
"createdByUsername": "john_doe",
"updatedByUsername": "jane_doe"
}
}
Not Found
Media type: application/vnd.api+json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response Schema",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiError",
"type": "object",
"additionalProperties": false,
"properties": {
"errors": {
"type": "array",
"description": "Error Response List",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Error Response object",
"description": "Error Response Schema for JSON API",
"javaType": "org.folio.rest.jaxrs.model.JsonapiErrorResponse",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Error Message Title",
"example": "Invalid KB API Credentials"
},
"detail": {
"type": "string",
"description": "Error Message Detail",
"example": "Kb api credentials are invalid"
},
"source": {
"type": "object",
"description": "Source of Error Message",
"example": {}
}
}
}
},
"jsonapi": {
"type": "object",
"description": "JSON API Version",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON API Version Schema",
"javaType": "org.folio.rest.jaxrs.model.JsonAPI",
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"description": "Version of json api being used",
"example": "1.0"
}
},
"required": [
"version"
]
}
}
}
Example:
{
"errors": [
{
"title": "Assigned user with id '99999999-9999-9999-9999-999999999999' not found"
}
],
"jsonapi": {
"version": "1.0"
}
}