{ "paths": { "/komante": { "get": { "responses": { "200": { "content": { "application/json": { "schema": { "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "kontni": { "type": "string" }, "sentAt": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "publishedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "username": { "type": "string" }, "email": { "type": "string", "format": "email" }, "resetPasswordToken": { "type": "string" }, "registrationToken": { "type": "string" }, "isActive": { "type": "boolean" }, "roles": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "name": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "users": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } }, "permissions": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "action": { "type": "string" }, "subject": { "type": "string" }, "properties": {}, "conditions": {}, "role": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "blocked": { "type": "boolean" }, "preferedLanguage": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } }, "meta": { "type": "object", "properties": { "pagination": { "properties": { "page": { "type": "integer" }, "pageSize": { "type": "integer", "minimum": 25 }, "pageCount": { "type": "integer", "maximum": 1 }, "total": { "type": "integer" } } } } } } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "tags": [ "Komant" ], "parameters": [ { "name": "sort", "in": "query", "description": "Sort by attributes ascending (asc) or descending (desc)", "deprecated": false, "required": false, "schema": { "type": "string" } }, { "name": "pagination[withCount]", "in": "query", "description": "Retun page/pageSize (default: true)", "deprecated": false, "required": false, "schema": { "type": "boolean" } }, { "name": "pagination[page]", "in": "query", "description": "Page number (default: 0)", "deprecated": false, "required": false, "schema": { "type": "integer" } }, { "name": "pagination[pageSize]", "in": "query", "description": "Page size (default: 25)", "deprecated": false, "required": false, "schema": { "type": "integer" } }, { "name": "pagination[start]", "in": "query", "description": "Offset value (default: 0)", "deprecated": false, "required": false, "schema": { "type": "integer" } }, { "name": "pagination[limit]", "in": "query", "description": "Number of entities to return (default: 25)", "deprecated": false, "required": false, "schema": { "type": "integer" } }, { "name": "fields", "in": "query", "description": "Fields to return (ex: title,author)", "deprecated": false, "required": false, "schema": { "type": "string" } }, { "name": "populate", "in": "query", "description": "Relations to return", "deprecated": false, "required": false, "schema": { "type": "string" } } ], "requestBody": {} }, "post": { "responses": { "200": { "content": { "application/json": { "schema": { "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "kontni": { "type": "string" }, "sentAt": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "publishedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "username": { "type": "string" }, "email": { "type": "string", "format": "email" }, "resetPasswordToken": { "type": "string" }, "registrationToken": { "type": "string" }, "isActive": { "type": "boolean" }, "roles": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "name": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "users": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } }, "permissions": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "action": { "type": "string" }, "subject": { "type": "string" }, "properties": {}, "conditions": {}, "role": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "blocked": { "type": "boolean" }, "preferedLanguage": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } }, "meta": { "type": "object" } } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "tags": [ "Komant" ], "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "properties": { "data": { "type": "object", "properties": { "kontni": { "type": "string" }, "sentAt": { "type": "string", "format": "date-time" } } } } } } } } } }, "/komante/{id}": { "get": { "responses": { "200": { "content": { "application/json": { "schema": { "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "kontni": { "type": "string" }, "sentAt": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "publishedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "username": { "type": "string" }, "email": { "type": "string", "format": "email" }, "resetPasswordToken": { "type": "string" }, "registrationToken": { "type": "string" }, "isActive": { "type": "boolean" }, "roles": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "name": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "users": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } }, "permissions": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "action": { "type": "string" }, "subject": { "type": "string" }, "properties": {}, "conditions": {}, "role": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "blocked": { "type": "boolean" }, "preferedLanguage": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } }, "meta": { "type": "object" } } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "tags": [ "Komant" ], "parameters": [ { "name": "id", "in": "path", "description": "", "deprecated": false, "required": true, "schema": { "type": "string" } } ], "requestBody": {} }, "put": { "responses": { "200": { "content": { "application/json": { "schema": { "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "kontni": { "type": "string" }, "sentAt": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "publishedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "firstname": { "type": "string" }, "lastname": { "type": "string" }, "username": { "type": "string" }, "email": { "type": "string", "format": "email" }, "resetPasswordToken": { "type": "string" }, "registrationToken": { "type": "string" }, "isActive": { "type": "boolean" }, "roles": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "name": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "users": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } }, "permissions": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": { "action": { "type": "string" }, "subject": { "type": "string" }, "properties": {}, "conditions": {}, "role": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } } }, "blocked": { "type": "boolean" }, "preferedLanguage": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "createdBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } } } }, "updatedBy": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "attributes": { "type": "object", "properties": {} } } } } } } } } }, "meta": { "type": "object" } } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "tags": [ "Komant" ], "parameters": [ { "name": "id", "in": "path", "description": "", "deprecated": false, "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "properties": { "data": { "type": "object", "properties": { "kontni": { "type": "string" }, "sentAt": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "publishedAt": { "type": "string", "format": "date-time" }, "createdBy": { "oneOf": [ { "type": "integer" }, { "type": "string" } ], "example": "string or id" }, "updatedBy": { "oneOf": [ { "type": "integer" }, { "type": "string" } ], "example": "string or id" } } } } } } } } }, "delete": { "responses": { "200": { "content": { "application/json": { "schema": { "type": "integer", "format": "int64" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "properties": { "status": { "type": "integer" }, "name": { "type": "string" }, "message": { "type": "string" } } } } } } } } }, "tags": [ "Komant" ], "parameters": [ { "name": "id", "in": "path", "description": "", "deprecated": false, "required": true, "schema": { "type": "string" } } ], "requestBody": {} } } } }