Files
upstream-espocrm/schema/routes.json
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 1s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

73 lines
2.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.espocrm.com/schema/routes.json",
"title": "routes",
"description": "Backend API routes.",
"type": "array",
"items": {
"type": "object",
"description": "A route.",
"properties": {
"route": {
"type": "string",
"description": "A route path. Example: `/MyScope/:id/myAction`."
},
"method": {
"type": "string",
"enum": [
"get",
"post",
"put",
"delete",
"options",
"patch"
],
"description": "An HTTP method."
},
"noAuth": {
"type": "boolean",
"description": "Makes the route not requiring authentication."
},
"actionClassName": {
"type": "string",
"description": "An action class. Should implement the interface Espo\\Core\\Api\\Action."
},
"consumes": {
"type": "array",
"items": {
"type": "string",
"description": "Media type.",
"examples": [
"application/json",
"multipart/form-data",
"application/x-www-form-urlencoded",
"text/plain"
]
},
"description": "If defined, restricts content types allowed for the endpoint. If an empty array, the Content-Type header must be empty. As of v10.1."
},
"params": {
"type": "object",
"description": "Parameters. If starts with a colon, then will be parsed from the URI. Example: `:id`.",
"additionalProperties": {
"type": "string"
},
"properties": {
"controller": {
"type": "string",
"description": "A controller name."
},
"action": {
"type": "string",
"description": "A controller action name."
}
}
}
},
"required": [
"route",
"method"
]
}
}