Create metaschema
Create a new metadata schema. The metaschema name must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
Example: {name:"user",schema:{"type":"object","properties":{"label":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}}}
Request Body required
The name of the metaschema. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.
The schema of the metaschema. The schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
metaschema object
{
"metaschema": {
"id": "a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b",
"name": "string",
"schema": {
"type": "object"
},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z"
}
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1beta1/meta/schemas
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'
curl -L -X POST 'http://127.0.0.1:7400/v1beta1/meta/schemas' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"schema": "string"
}'