http://github.com/org/folio/mod-finc-config
This documents the API calls that can be made to query and manage EZB credentials for the current tenant/isil
Get the ezb credential of current tenant
GET /finc-select/ezb-credentials
The tenant's ezb credential entry
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "EZB Credential",
"description": "Single EZB Credential schema",
"properties": {
"id": {
"description": "ID of cred entry.",
"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}$",
"readOnly": true
},
"user": {
"type": "string",
"description": "The user name"
},
"password": {
"type": "string",
"description": "The password"
},
"libId": {
"type": "string",
"description": "The library id"
},
"isil": {
"type": "string",
"description": "Isil of library of this credential entry. Needs to be unique. Hence, there is only one ezb credential per library."
}
},
"required": [
"user",
"password",
"libId"
]
}
Example:
{
"user": "user1",
"password": "password1",
"libId": "lib1",
"isil": "DE-14",
"id": "5da17580-5d30-4b75-aafb-1317bafad827"
}
Not found
Media type: text/plain
Type: any
Example:
Not found
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Add or edit an ezb credential entry
PUT /finc-select/ezb-credentials
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "EZB Credential",
"description": "Single EZB Credential schema",
"properties": {
"id": {
"description": "ID of cred entry.",
"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}$",
"readOnly": true
},
"user": {
"type": "string",
"description": "The user name"
},
"password": {
"type": "string",
"description": "The password"
},
"libId": {
"type": "string",
"description": "The library id"
},
"isil": {
"type": "string",
"description": "Isil of library of this credential entry. Needs to be unique. Hence, there is only one ezb credential per library."
}
},
"required": [
"user",
"password",
"libId"
]
}
The added collections
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "EZB Credential",
"description": "Single EZB Credential schema",
"properties": {
"id": {
"description": "ID of cred entry.",
"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}$",
"readOnly": true
},
"user": {
"type": "string",
"description": "The user name"
},
"password": {
"type": "string",
"description": "The password"
},
"libId": {
"type": "string",
"description": "The library id"
},
"isil": {
"type": "string",
"description": "Isil of library of this credential entry. Needs to be unique. Hence, there is only one ezb credential per library."
}
},
"required": [
"user",
"password",
"libId"
]
}
Example:
{
"user": "user1",
"password": "password1",
"libId": "lib1",
"isil": "DE-14",
"id": "5da17580-5d30-4b75-aafb-1317bafad827"
}
Bad request
Media type: text/plain
Type: any
Example:
Bad request
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error