210 lines
4.9 KiB
JSON
210 lines
4.9 KiB
JSON
{
|
|
"openapi": "3.0.0",
|
|
"servers": [
|
|
{
|
|
"url": "/api"
|
|
}
|
|
],
|
|
"info": {
|
|
"version": "1.0",
|
|
"title": "Steffens Xxx API"
|
|
},
|
|
"paths": {
|
|
"/jstreedata": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BasicAuth": [
|
|
"user"
|
|
]
|
|
}
|
|
],
|
|
"tags": [
|
|
"Jstreetemplate"
|
|
],
|
|
"operationId": "jstreedata",
|
|
"x-mojo-name": "jstreetemplate_jstreedata",
|
|
"x-mojo-to": "api-jstreetemplate#jstreedata",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Daten für das JSTree",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/mls_default_response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/jstreedataupdate": {
|
|
"post": {
|
|
"summary": "nicht funktionierende UPDATE Route Controller existiert nicht",
|
|
"security": [
|
|
{
|
|
"BasicAuth": [
|
|
"user"
|
|
]
|
|
}
|
|
],
|
|
"tags": [
|
|
"Jstreetemplate"
|
|
],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": [
|
|
"id"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "ident zum update",
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"kat_id": {
|
|
"description": "Kategorie ident zum update",
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"name": {
|
|
"description": "Name der Kategorie",
|
|
"type": "string",
|
|
"minLength": 3,
|
|
"maxLength": 20
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"operationId": "jstreedataupdate",
|
|
"x-mojo-name": "jstreetemplate_jstreedataupdate",
|
|
"x-mojo-to": "api-jstreetemplate#jstreedataupdate",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Daten für das JSTree",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/mls_default_response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/jstree/{id}/{kat_id}": {
|
|
"get": {
|
|
"summary": "nicht funktionierende GET Path Route Controller existiert nicht",
|
|
"security": [
|
|
{
|
|
"BasicAuth": [
|
|
"user"
|
|
]
|
|
}
|
|
],
|
|
"tags": [
|
|
"Jstreetemplate"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"required": true,
|
|
"name": "id",
|
|
"in": "path",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
},
|
|
{
|
|
"required": true,
|
|
"name": "kat_id",
|
|
"in": "path",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
}
|
|
],
|
|
"operationId": "jstree",
|
|
"x-mojo-name": "jstreetemplate_jstree",
|
|
"x-mojo-to": "api-jstreetemplate#jstree",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Daten für das JSTree",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/mls_default_response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/datatablesdata": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"BasicAuth": [
|
|
"user"
|
|
]
|
|
}
|
|
],
|
|
"tags": [
|
|
"Jstreetemplate"
|
|
],
|
|
"operationId": "datatablesdata",
|
|
"x-mojo-name": "jstreetemplate_datatablesdata",
|
|
"x-mojo-to": "api-jstreetemplate#datatablesdata",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Daten für die Tabelle",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/mls_default_response"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"securitySchemes": {
|
|
"BasicAuth": {
|
|
"type": "http",
|
|
"scheme": "basic"
|
|
}
|
|
},
|
|
"schemas": {
|
|
"mls_default_response": {
|
|
"type": "object",
|
|
"properties": {
|
|
"rc": {
|
|
"type": "integer",
|
|
"enum": [
|
|
0,
|
|
1
|
|
],
|
|
"description": "0 - alles gut | 1 - Fehler"
|
|
},
|
|
"msg": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|