Overview

List of all schemas

GET /api/content/schemas

Information about a specific schema

GET /api/content/schemas/{schemaName}

Descriptions


List of all schemas

GET /api/content/schemas

Shows list of all schemas.

Request

Query Parameters

Parameter Name

Type

Required

Description

logout

Boolean

false

Logs out the user and ends the session.

Response

Returns

http 200 - OK, call successful.
http 401 - Unauthorized if the authentication process has failed.

Data structure

Property

Type

Description

items

Array


......displayName

String

The display name of the schema. 

......name

String

The technical name of the schema.

......description

String

An optional description of the document schema.

Example (schemas)
{
"_links": {
"self": {
"rel": "self",
"href": "http://127.0.0.1:9090/api/content/schemas"
}
},
"items": [
{
"_links": {
"self": {
"rel": "self",
"href": "http://127.0.0.1:9090/api/content/schemas/ADAPTIVE"
}
},
"name": "ADAPTIVE",
"displayName": "Adaptive",
"description": "The 'Adaptive' schema supports unstructured storage and search."
},
{
"_links": {
"self": {
"rel": "self",
"href": "http://127.0.0.1:9090/api/content/schemas/DefaultScheme"
}
},
"name": "DefaultScheme",
"displayName": "DefaultScheme"
}
]
}

Information about a specific schema

GET /api/content/schemas/{schemaName}

Provides information about the specified schema.

Request

Query Parameter

Parameter Name

Type

Required

Description

logout

Boolean

false

Logs out the user and ends the session.

Response

Returns

http 200 - OK, call successful.
http 401 - Unauthorized if the authentication process has failed.
http 404 - Will be returned if the schema (specified by its name) does not exist.

Data structure

Property

Type

Description

displayName

String

The localized display name of the schema. 

name

String

The technical name of the schema.

attributes

Array

All attribute fields of the schema. System fields are not displayed.

....name

String

The technical name of the attribute field.

....displayName

String

The localized display name of the attribute field.

....required

Boolean

Specifies, whether this field is mandatory.

....searchable

Boolean

Specifies, whether the content of the field is also stored in full text.

....hitlistField

Boolean

Specifies, whether the field is displayed in the hitlist.

....dataTypes

Array

Specifies the valid data types of the field content. 

....rawAllowedValues

Object

Lists the allowed values for the field. The list consists of allowed field values and their dependent localized display names. The localized display names are of the locale which is specified by the header parameter "Accept-Language" of the GET request.
If the header parameter "Accept-Language" is missing or if the specified locale is not configured in the easy archive server, English is used as default.

Example
{
"_links": {
"self": {
"rel": "self",
"href": "https://127.0.0.1:9090/api/content/schemas/Invoice"
}
},
"name": "Invoice",
"displayName": "Invoice",
"attributes": [
{
"name": "iNumber",
"displayName": "invoiceNumber",
"required": false,
"searchable": true,
"hitlistField": true,
"dataTypes": [
"number"
],
"rawAllowedValues": {}
},
{
"name": "status",
"displayName": "status",
"required": false,
"searchable": true,
"hitlistField": true,
"dataTypes": [
"text"
],
"rawAllowedValues": {
"waiting": "yellow",
"approved": "green",
"denied": "red"
            }
},
{
"name": "Date",
"displayName": "Date",
"required": false,
"searchable": true,
"hitlistField": true,
"dataTypes": [
"datetime"
],
"rawAllowedValues": {}
}
]
}