跳转到主要内容
POST
/
v1
/
config
/
validate
仅编译校验配置,不应用
curl --request POST \
  --url http://127.0.0.1:22100/v1/config/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "ok": true,
  "generation": 123
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

原始 Arc 配置 JSON 文档。

响应

配置有效

ok
boolean
必填
generation
integer<int64>
必填