Программный интерфейс

/web_api/autotest_step/create

/web_api/autotest_step/create ​

Страница собрана из снимка JSON Schema в репозитории документации. Снимок обновляется отдельной командой из каталога основного приложения и при сборке сайта не переписывается.

Запрос ​

main-app://schemas/api_elements/autotest_step/create.request.json

REQUEST /web_api/autotest_step/create

ИмяТипОбязательноеОграничение
autotest_case_idintegerДаminimum 0
team_idintegerДаminimum 0
sort_orderintegerНетminimum 0
action_namestringДаmaxLength 64
target_jsonstring | nullНет-
value_textstring | nullНет-
timeout_msinteger | nullНетminimum 0
object_repository_page_idinteger | nullНетminimum 0
object_repository_element_idinteger | nullНетminimum 0
value_source_typestring | nullНет-
value_source_fieldstring | nullНет-
created_atstringНет-
updated_atstringНет-
target-Нет-
expected_value-Нет-

Другие поля верхнего уровня запрещены.

Ответ ​

main-app://schemas/api_elements/autotest_step/create.response.json

RESPONSE /web_api/autotest_step/create

ИмяТипОбязательноеОграничение
api_codeintegerДаconst 200
api_resultobjectДадругие поля допустимы
emptybooleanНет-

Другие поля верхнего уровня запрещены.

api_result ​

ИмяТипОбязательноеОграничение
autotest_step_idintegerНетminimum 0
autotest_case_idintegerНетminimum 0
team_idintegerНетminimum 0
sort_orderintegerНетminimum 0
action_namestringНетmaxLength 64
target_jsonstring | nullНет-
value_textstring | nullНет-
timeout_msinteger | nullНетminimum 0
object_repository_page_idinteger | nullНетminimum 0
object_repository_element_idinteger | nullНетminimum 0
value_source_typestring | nullНет-
value_source_fieldstring | nullНет-
created_atstringНет-
updated_atstringНет-

Исходная схема ​

Файлы ниже скопированы из снимка без изменений. Фрагмент по $ref приведён отдельным блоком, схемы не сливаются.

Запрос: main-app://schemas/api_elements/autotest_step/create.request.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_elements/autotest_step/create.request.json",
  "title": "REQUEST /web_api/autotest_step/create",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "autotest_case_id": {
      "type": "integer",
      "minimum": 0
    },
    "team_id": {
      "type": "integer",
      "minimum": 0
    },
    "sort_order": {
      "type": "integer",
      "minimum": 0
    },
    "action_name": {
      "type": "string",
      "maxLength": 64
    },
    "target_json": {
      "type": [
        "string",
        "null"
      ]
    },
    "value_text": {
      "type": [
        "string",
        "null"
      ]
    },
    "timeout_ms": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "object_repository_page_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "object_repository_element_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "value_source_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "value_source_field": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "description": "timestamp Y-m-d H:i:s"
    },
    "updated_at": {
      "type": "string",
      "description": "timestamp Y-m-d H:i:s"
    },
    "target": {
      "description": "Accepted on create. Not a column."
    },
    "expected_value": {
      "description": "Accepted on create. Not a column."
    }
  },
  "required": [
    "autotest_case_id",
    "team_id",
    "action_name"
  ]
}
Ответ: main-app://schemas/api_elements/autotest_step/create.response.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_elements/autotest_step/create.response.json",
  "title": "RESPONSE /web_api/autotest_step/create",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "allOf": [
    {
      "$ref": "main-app://schemas/_shared/envelope-success.json"
    },
    {
      "type": "object",
      "properties": {
        "api_result": {
          "$ref": "main-app://schemas/api_elements/autotest_step/row.json"
        }
      }
    }
  ]
}
Фрагмент: main-app://schemas/_shared/envelope-success.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/_shared/envelope-success.json",
  "title": "Canonical success envelope",
  "type": "object",
  "required": ["api_code", "api_result"],
  "properties": {
    "api_code": { "const": 200 },
    "api_result": true,
    "empty": { "type": "boolean" }
  },
  "additionalProperties": false
}
Фрагмент: main-app://schemas/api_elements/autotest_step/row.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_elements/autotest_step/row.json",
  "title": "Row autotest_step",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "autotest_step_id": {
      "type": "integer",
      "minimum": 0
    },
    "autotest_case_id": {
      "type": "integer",
      "minimum": 0
    },
    "team_id": {
      "type": "integer",
      "minimum": 0
    },
    "sort_order": {
      "type": "integer",
      "minimum": 0
    },
    "action_name": {
      "type": "string",
      "maxLength": 64
    },
    "target_json": {
      "type": [
        "string",
        "null"
      ]
    },
    "value_text": {
      "type": [
        "string",
        "null"
      ]
    },
    "timeout_ms": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "object_repository_page_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "object_repository_element_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "value_source_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "value_source_field": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "description": "timestamp Y-m-d H:i:s"
    },
    "updated_at": {
      "type": "string",
      "description": "timestamp Y-m-d H:i:s"
    }
  }
}

Версия 1.0.0 · Последнее изменение 2026-10-07

Страница не помогла?