Entities Templates Management
Create a new template
Create a new template in the system with the provided information
post/api/v1/entity-templates
Request body
Example request
{
"identifier": "service",
"name": "Service",
"description": "A comprehensive service template",
"properties_definitions": [
{
"name": "applicationName",
"description": "Name of the application",
"type": "STRING",
"required": true,
"rules": {
"format": "EMAIL",
"enum_values": [
"ACTIVE",
"INACTIVE"
],
"regex": "^[a-zA-Z0-9]+$",
"max_length": 255,
"min_length": 1,
"max_value": 100
}
}
],
"relations_definitions": [
{
"name": "dependencies",
"target_template_identifier": "service",
"to_many": true
}
]
}Response
Template created successfully