The metadata api endpoints allow authorized users to read, modify and delete metadata resources.
For more information about the architecture and core concepts of metadata resources, you may consult the Metadata component documentation.
This endpoint returns the list of metadata resources.
GET /metadatas
Name | Type | Description | Example |
---|---|---|---|
Accept | string | The accepted returned content types. Optional. Default: application/ld+json . Options: application/json , application/ld+json . |
Accept: application/json |
Authorization | string | The JWT token. Required. | Authorization: eyJhbGciOi.eyJyb2xlcy[...].Ds34hb80Mf[...] |
Name | Type | Description | Example |
---|---|---|---|
id | integer | Filter metadata resources by the given id. Optional. | id=1 id[]=1&id[]=2 |
uuid | string | Filter metadata resources by the given uuid. Optional. | uuid=941b9d4e-d0e5-41df-a62e-97db05559dac uuid[]=941b9d4e-d0e5-41df-a62e-97db05559dac&uuid[]=70e6171c-c1ea-47d1-b24c-4b93328908fc |
createdAt[before] | string | Filter metadata resources that were created before the given date. Optional. | createdAt[before]=2018-07-20T13:19:30.181Z |
createdAt[after] | string | Filter metadata resources that were created after the given date. Optional. | createdAt[after]2018-07-20T13:19:30.181Z |
updatedAt[before] | string | Filter metadata resources that were updated before the given date. Optional. | updatedAt[before]=2018-07-20T13:19:30.181Z |
updatedAt[after] | string | Filter metadata resources that were updated after the given date. Optional. | updatedAt[after]=2018-07-20T13:19:30.181Z |
owner | string | Filter metadata resources by the given owner. Optional. | owner=BusinessUnit owner[]=BusinessUnit&owner[]=Staff |
ownerUuid | string | Filter metadata resources by the given owner uuid. Optional. | ownerUuid=c11c546e-bd01-47cf-97da-e25388357b5a ownerUuid[]=c11c546e-bd01-47cf-97da-e25388357b5a&ownerUuid[]=a9d68bf7-5000-49fe-8b00-33dde235b327 |
title | string | Filter metadata resources by the given partial title. Optional. | title=OAuth title[]=OAuth&title[]=Registration |
slug | string | Filter metadata resources by the given slug. Optional. | slug=oauth-providers slug[]=oauth-providers&slug[]=registration |
type | string | Filter metadata resources by the given type. Optional. | type=authentication type[]=authentication&type[]=user |
page | integer | The current page in the pagination. Optional. Default: 1 . |
page=2 |
limit | integer | The number of items per page. Optional. Default: 10 . |
limit=25 |
order[id] | string | Order metadata resources by id. Optional. Options: asc , desc . |
order[id]=asc |
order[createdAt] | string | Order metadata resources by creation date. Optional. Options: asc , desc . |
order[createdAt]=asc |
order[updatedAt] | string | Order metadata resources by modification date. Optional. Options: asc , desc . |
order[updatedAt]=asc |
order[owner] | string | Order metadata resources by owner. Optional. | order[owner]=asc |
order[title] | string | Order metadata resources by title. Optional. | order[title]=asc |
order[type] | string | Order metadata resources by type. Optional. | order[type]=asc |
order[slug] | string | Order metadata resources by slug. Optional. | order[slug]=asc |
The request was successful and returns a JSON array of objects. Each object contains the following properties:
Name | Type | Description |
---|---|---|
id | integer | The metadata resource id. |
uuid | string | The metadata resource uuid. |
createdAt | string | The date the metadata resource was created on. |
updatedAt | string | The date the metadata resource was updated at. |
owner | string | The metadata resource owner. |
ownerUuid | string | The metadata resource owner uuid. |
title | object | The metadata resource title. |
slug | string | The metadata resource slug. This value is unique. |
type | string | The metadata resource type. |
data | json | The metadata resource data. |
version | integer | The config version. This value is used for optimistic locking. |
tenant | string | The config tenant uuid. |
Method:
GET /metadatas
Headers:
Accept: application/json
Code:
200 OK
Body:
[
{
"id": 1,
"uuid": "941b9d4e-d0e5-41df-a62e-97db05559dac",
"createdAt": "2018-07-18T19:20:17+00:00",
"updatedAt": "2018-07-18T19:20:17+00:00",
"owner": "BusinessUnit",
"ownerUuid": "c11c546e-bd01-47cf-97da-e25388357b5a",
"title": {
"en": "OAuth Providers"
},
"slug": "oauth-providers",
"type": "authentication",
"data": [
"Github",
"Google",
"Twitter"
],
"version": 1,
"tenant": "e5a2120d-6bf7-4c58-a900-bac1e55e986b"
}
]
This endpoint returns a specific metadata resource.
GET /metadatas/{uuid}
Name | Type | Description | Example |
---|---|---|---|
Accept | string | The accepted returned content types. Optional. Default: application/ld+json . Options: application/json , application/ld+json . |
Accept: application/json |
Authorization | string | The JWT token. Required. | Authorization: eyJhbGciOi.eyJyb2xlcy[...].Ds34hb80Mf[...] |
Name | Type | Description | Example |
---|---|---|---|
uuid | string | The uuid of the metadata resource. Required. | 941b9d4e-d0e5-41df-a62e-97db05559dac |
The request was successful and returns a JSON object that contains the following properties:
Name | Type | Description |
---|---|---|
id | integer | The metadata resource id. |
uuid | string | The metadata resource uuid. |
createdAt | string | The date the metadata resource was created on. |
updatedAt | string | The date the metadata resource was updated at. |
owner | string | The metadata resource owner. |
ownerUuid | string | The metadata resource owner uuid. |
title | object | The metadata resource title. |
slug | string | The metadata resource slug. This value is unique. |
type | string | The metadata resource type. |
data | json | The metadata resource data. |
version | integer | The config version. This value is used for optimistic locking. |
tenant | string | The config tenant uuid. |
The request was unsuccessful and returns a JSON object that contains the following properties:
Name | Type | Description |
---|---|---|
type | string | The error type. |
title | string | The error title message. |
detail | string | The error detail description. |
Method:
GET /metadatas/941b9d4e-d0e5-41df-a62e-97db05559dac
Headers:
Accept: application/json
Code:
200 OK
Body:
{
"id": 1,
"uuid": "941b9d4e-d0e5-41df-a62e-97db05559dac",
"createdAt": "2018-07-18T19:20:17+00:00",
"updatedAt": "2018-07-18T19:20:17+00:00",
"owner": "BusinessUnit",
"ownerUuid": "c11c546e-bd01-47cf-97da-e25388357b5a",
"title": {
"en": "OAuth Providers"
},
"slug": "oauth-providers",
"type": "authentication",
"data": [
"Github",
"Google",
"Twitter"
],
"version": 1,
"tenant": "e5a2120d-6bf7-4c58-a900-bac1e55e986b"
}
This endpoint adds an metadata resource to the list.
POST /metadatas
Name | Type | Description | Example |
---|---|---|---|
Content-Type | string | The accepted returned content types. Options: application/json . |
Content-Type: application/json |
Accept | string | The accepted returned content types. Optional. Default: application/ld+json . Options: application/json , application/ld+json . |
Accept: application/json |
Authorization | string | The JWT token. Required. | Authorization: eyJhbGciOi.eyJyb2xlcy[...].Ds34hb80Mf[...] |
A JSON object that contains the following properties:
Name | Type | Description | Example |
---|---|---|---|
uuid | string | The metadata resource uuid. Optional. Default: auto-generated. | cf687347-6bba-4137-b180-9f581f5cba84 |
owner | string | The metadata resource owner. Required. | BusinessUnit |
ownerUuid | string | The metadata resource owner uuid. Optional. Default: null . |
c11c546e-bd01-47cf-97da-e25388357b5a |
title | object | The metadata resource title. Required. | { "en": "OAuth Providers" } |
slug | string | The metadata resource slug. This value is unique. Required. | oauth-providers |
type | string | The metadata resource type. Required. | authentication |
data | json | The metadata resource data. Optional. Default: {} |
["Github", "Google", "Twitter"] |
version | integer | The metadata resource version. This value is used for optimistic locking. Required. | 1 |
The request was successful and returns a JSON object that contains the following properties:
Name | Type | Description |
---|---|---|
id | integer | The metadata resource id. |
uuid | string | The metadata resource uuid. |
createdAt | string | The date the metadata resource was created on. |
updatedAt | string | The date the metadata resource was update at. |
owner | string | The metadata resource owner. |
ownerUuid | string | The metadata resource owner uuid. |
title | object | The metadata resource title. |
slug | string | The metadata resource slug. This value is unique. |
type | string | The metadata resource type. |
data | json | The metadata resource data. |
version | integer | The config version. This value is used for optimistic locking. |
tenant | string | The config tenant uuid. |
The request was unsuccessful and returns a JSON object that contains the following properties:
Name | Type | Description |
---|---|---|
type | string | The error type. |
title | string | The error title message. |
detail | string | The error detail description. |
Method:
POST /metadatas
Headers:
Content-Type: application/json
Accept: application/json
Body:
{
"owner": "BusinessUnit",
"ownerUuid": "c11c546e-bd01-47cf-97da-e25388357b5a",
"title": {
"en": "OAuth Providers"
},
"slug": "oauth-providers",
"type": "authentication",
"data": [
"Github",
"Google",
"Twitter"
],
"version": 1
}
Code:
200 OK
Body:
{
"id": 2,
"uuid": "cf687347-6bba-4137-b180-9f581f5cba84",
"createdAt": "2018-07-18T19:20:17+00:00",
"updatedAt": "2018-07-18T19:20:17+00:00",
"owner": "BusinessUnit",
"ownerUuid": "c11c546e-bd01-47cf-97da-e25388357b5a",
"title": {
"en": "OAuth Providers"
},
"slug": "oauth-providers",
"type": "authentication",
"data": [
"Github",
"Google",
"Twitter"
],
"version": 1,
"tenant": "e5a2120d-6bf7-4c58-a900-bac1e55e986b"
}
This endpoint edits a specific metadata resource.
PUT /metadatas/{uuid}
Name | Type | Description | Example |
---|---|---|---|
Content-Type | string | The accepted returned content types. Options: application/json . |
Content-Type: application/json |
Accept | string | The accepted returned content types. Optional. Default: application/ld+json . Options: application/json , application/ld+json . |
Accept: application/json |
Authorization | string | The JWT token. Required. | Authorization: eyJhbGciOi.eyJyb2xlcy[...].Ds34hb80Mf[...] |
Name | Type | Description | Example |
---|---|---|---|
uuid | string | The uuid of the metadata resource. Required. | 941b9d4e-d0e5-41df-a62e-97db05559dac |
A JSON object that contains the following properties:
Name | Value | Description | Example |
---|---|---|---|
uuid | string | The metadata resource uuid. Optional. Default: auto-generated. | 941b9d4e-d0e5-41df-a62e-97db05559dac |
owner | string | The metadata resource owner. Required. | BusinessUnit |
ownerUuid | string | The metadata resource owner uuid. Optional. Default: null . |
c11c546e-bd01-47cf-97da-e25388357b5a |
title | object | The metadata resource title. Required. | { "en": "OAuth Providers"} |
slug | string | The metadata resource slug. This value is unique. Required. | oauth-providers |
type | string | The metadata resource type. Required. | authentication |
data | json | The metadata resource data. Optional. Default: {} |
["Github", "Google", "Twitter"] |
version | integer | The metadata resource version. This value is used for optimistic locking. Required. | 1 |
The request was successful and returns a JSON object that contains the following properties:
Name | Value | Description |
---|---|---|
id | integer | The metadata resource id. |
uuid | string | The metadata resource uuid. |
createdAt | string | The date the metadata resource was created on. |
updatedAt | string | The date the metadata resource was update at. |
owner | string | The metadata resource owner. |
ownerUuid | string | The metadata resource owner uuid. |
title | object | The metadata resource title. |
slug | string | The metadata resource slug. This value is unique. |
type | string | The metadata resource type. |
data | json | The metadata resource data. |
version | integer | The config version. This value is used for optimistic locking. |
tenant | string | The config tenant uuid. |
The request was unsuccessful and returns a JSON object that contains the following properties:
Name | Type | Description |
---|---|---|
type | string | The error type. |
title | string | The error title message. |
detail | string | The error detail description. |
Method:
PUT /metadatas/941b9d4e-d0e5-41df-a62e-97db05559dac
Headers:
Content-Type: application/json
Accept: application/json
Body:
{
"data": [
"Github",
"Google",
"Twitter",
"Yahoo"
],
"version": 1
}
Code:
200 OK
Body:
{
"id": 2,
"uuid": "cf687347-6bba-4137-b180-9f581f5cba84",
"createdAt": "2018-07-18T19:20:17+00:00",
"updatedAt": "2018-07-19T12:08:30+00:00",
"owner": "BusinessUnit",
"ownerUuid": "c11c546e-bd01-47cf-97da-e25388357b5a",
"title": {
"en": "OAuth Providers"
},
"slug": "oauth-providers",
"type": "authentication",
"data": [
"Github",
"Google",
"Twitter",
"Yahoo"
],
"version": 2,
"tenant": "e5a2120d-6bf7-4c58-a900-bac1e55e986b"
}
This endpoint deletes a specific metadata resource from the list.
DELETE /metadatas/{uuid}
Name | Type | Description | Example |
---|---|---|---|
Authorization | string | The JWT token. Required. | Authorization: eyJhbGciOi.eyJyb2xlcy[...].Ds34hb80Mf[...] |
Name | Type | Description | Example |
---|---|---|---|
uuid | string | The uuid of the metadata resource. Required. | 941b9d4e-d0e5-41df-a62e-97db05559dac |
The request was successful and returns no content.
Method:
DELETE /metadatas/941b9d4e-d0e5-41df-a62e-97db05559dac
Code:
204 No Content
Body: