Skip to main content
POST
/
api
/
v1
/
config
/
generate-schema
AI-generate a validation schema
curl --request POST \
  --url http://localhost:8080/api/v1/config/generate-schema \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "type": "json-schema",
  "name": "<string>",
  "sampleData": "<string>"
}
'
{
  "filename": "<string>",
  "path": "<string>",
  "schema": "<string>"
}

Authorizations

x-api-key
string
header
required

Optional API key for authentication (enabled via application.yaml)

Body

application/json
type
enum<string>
required
Available options:
json-schema,
xsd
name
string
required
sampleData
string
required

Response

Generated schema with filename and content

filename
string
path
string
schema
string