QamaqQamaq
GET

获取活跃实体版本

/entities/{entity_key}/versions/active

返回实体当前活跃的版本及其完整模式。

常见用例

  • Generate dynamic forms from entity schemas
  • Validate record data against the schema
  • Display entity fields in your UI

参数

路径参数

名称类型描述
entity_key必填
string

The entity key

代码示例

curl -X GET "https://api.qamaq.io/api/v1/entities/{entity_key}/versions/active" \
  -H "Authorization: Bearer qmq_your_api_key"

响应

200Active entity version

Response Body

{
id:string
entity_key:string
version_number:string
status:string
fields:object[]
layouts:object[]
}