Created
June 20, 2023 22:27
-
-
Save andersonmendesdev/869c661da2a6088ef38bf5aa91c6d58c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.3", | |
"info": { | |
"title": "Swagger Gendo - OpenAPI 3.0", | |
"description": "", | |
"termsOfService": "http://swagger.io/terms/", | |
"contact": { | |
"email": "apiteam@swagger.io" | |
}, | |
"license": { | |
"name": "Apache 2.0", | |
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | |
}, | |
"version": "1.0.11" | |
}, | |
"externalDocs": { | |
"description": "Find out more about Swagger", | |
"url": "http://swagger.io" | |
}, | |
"servers": [ | |
{ | |
"url": "https:///emuve31.adm.gendo.app/api" | |
} | |
], | |
"tags": [ | |
{ | |
"name": "agendamentos", | |
"description": "Tudo sobre agendamentos", | |
"externalDocs": { | |
"description": "Find out more", | |
"url": "http://swagger.io" | |
} | |
} | |
], | |
"paths": { | |
"/api/responsaveis-calendario": { | |
"get": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "Carrega os profissionais da agenda.", | |
"description": "Multiple status values can be provided with comma separated string", | |
"responses": { | |
"200": { | |
"description": "successful operation", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"status": { | |
"type": "boolean", | |
"example": true | |
}, | |
"message": { | |
"type": "string", | |
"example": "ok" | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Professional" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Invalid status value" | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/agendamentos": { | |
"get": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "Agendamentos por periodo", | |
"description": "Carregada os agendamentos de acordo com o filtro de datas.", | |
"parameters": [ | |
{ | |
"name": "Inicio", | |
"in": "query", | |
"description": "Data de inicio do filtros de agendamentos", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"example": "2023-06-21" | |
} | |
}, | |
{ | |
"name": "Fim", | |
"in": "query", | |
"description": "Data final do filtros de agendamentos", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"example": "2023-06-21" | |
} | |
}, | |
{ | |
"name": "order", | |
"in": "query", | |
"description": "ordenação das datas", | |
"required": false, | |
"schema": { | |
"type": "string", | |
"example": "data-desc" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "successful operation", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"status": { | |
"type": "boolean", | |
"example": true | |
}, | |
"message": { | |
"type": "string", | |
"example": "ok" | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Agendamento" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Invalid status value" | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/agendamento": { | |
"post": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "cria agendamento", | |
"description": "cria agendamento", | |
"requestBody": { | |
"content": { | |
"application/form-data": { | |
"schema": { | |
"type": "string", | |
"format": "binary" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "successful operation", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"status": { | |
"type": "boolean", | |
"example": false | |
}, | |
"message": { | |
"type": "string", | |
"example": "ok" | |
}, | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"example": 1743 | |
}, | |
"paciente_id": { | |
"type": "integer", | |
"example": 249 | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/agendamento-logs/id": { | |
"get": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "Carrega os logs de uma agendamento", | |
"description": "Carregada os agendamentos de acordo com o filtro de datas.", | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "query", | |
"description": "id do agendamento", | |
"required": true, | |
"schema": { | |
"type": "string", | |
"example": "1344" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "successful operation", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"status": { | |
"type": "boolean", | |
"example": true | |
}, | |
"message": { | |
"type": "string", | |
"example": "ok" | |
}, | |
"data": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/AgendamentoLog" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Invalid status value" | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/folga/{id}": { | |
"delete": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "Deletes a folga", | |
"description": "delete a folga", | |
"parameters": [ | |
{ | |
"name": "api_key", | |
"in": "header", | |
"description": "", | |
"required": false, | |
"schema": { | |
"type": "string" | |
} | |
}, | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "Pet id to delete", | |
"required": true, | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
], | |
"responses": { | |
"400": { | |
"description": "Invalid pet value" | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/consultas/{id}": { | |
"delete": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "Deletes um agendamento", | |
"description": "delete a folga", | |
"parameters": [ | |
{ | |
"name": "api_key", | |
"in": "header", | |
"description": "", | |
"required": false, | |
"schema": { | |
"type": "string" | |
} | |
}, | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "Pet id to delete", | |
"required": true, | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
], | |
"responses": { | |
"400": { | |
"description": "Invalid pet value" | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/agendamento-dados/{id}": { | |
"get": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "carrega os dados de um agendamemto", | |
"description": "delete a folga", | |
"parameters": [ | |
{ | |
"name": "api_key", | |
"in": "header", | |
"description": "", | |
"required": false, | |
"schema": { | |
"type": "string" | |
} | |
}, | |
{ | |
"name": "id", | |
"in": "path", | |
"description": "Pet id to delete", | |
"required": true, | |
"schema": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
], | |
"responses": { | |
"400": { | |
"description": "Invalid pet value" | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/agendamento-status/": { | |
"post": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "update status schedule", | |
"description": "", | |
"requestBody": { | |
"content": { | |
"application/form-data": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"example": "0" | |
}, | |
"status": { | |
"type": "string", | |
"enum": [ | |
"1", | |
"2", | |
"3", | |
"6", | |
"7", | |
"9" | |
] | |
} | |
} | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "successful operation", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/ApiResponse" | |
} | |
} | |
} | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
}, | |
"/api/bloqueio": { | |
"post": { | |
"tags": [ | |
"agendamentos" | |
], | |
"summary": "cria um bloqueio na agenda", | |
"description": "cria um bloqueio na agenda", | |
"requestBody": { | |
"content": { | |
"application/form-data": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"example": "0" | |
}, | |
"id_responsavel": { | |
"type": "string", | |
"example": "12" | |
}, | |
"hora_inicio": { | |
"type": "string", | |
"example": "18:00" | |
}, | |
"hora_fim": { | |
"type": "string", | |
"example": "19:00" | |
}, | |
"data_inicio": { | |
"type": "string", | |
"example": "2023-06-20" | |
}, | |
"data_fim": { | |
"type": "string", | |
"example": "2023-06-20" | |
}, | |
"tipo_bloqueio": { | |
"type": "string", | |
"example": "" | |
}, | |
"repeticoes_bloqueio": { | |
"type": "string", | |
"example": "" | |
}, | |
"descricao": { | |
"type": "string", | |
"example": "Motivo" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "successful operation", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { | |
"status": { | |
"type": "boolean", | |
"example": false | |
}, | |
"message": { | |
"type": "string", | |
"example": "ok" | |
}, | |
"data": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"example": 0 | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"security": [ | |
{ | |
"Bearer": [] | |
} | |
] | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"Professional": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"example": "47" | |
}, | |
"nome": { | |
"type": "string", | |
"example": "Test" | |
}, | |
"telefone": { | |
"type": "string", | |
"example": "11915709999" | |
}, | |
"profile_pic": { | |
"type": "string", | |
"example": "https://emuve31.adm.gendo.app/configuration/emuve31/image/profile_179.png?" | |
}, | |
"id_user": { | |
"type": "string" | |
}, | |
"observacoes": { | |
"type": "string" | |
}, | |
"categorias": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/Category" | |
} | |
}, | |
"visible": { | |
"type": "boolean", | |
"example": true | |
} | |
} | |
}, | |
"Category": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"example": "341" | |
}, | |
"nome": { | |
"type": "string", | |
"example": "Salão de Beleza" | |
} | |
} | |
}, | |
"Agendamento": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"example": "1731" | |
}, | |
"start": { | |
"type": "string", | |
"example": "2023-06-19T15:00:00Z" | |
}, | |
"end": { | |
"type": "string", | |
"example": "2023-06-19T15:50:00Z" | |
}, | |
"title": { | |
"type": "string", | |
"example": "Bruna Lambert" | |
}, | |
"atendente": { | |
"type": "string", | |
"example": "Anderson Mendes Da Silva" | |
}, | |
"servico": { | |
"type": "string", | |
"example": "Combo Cabelo E Barba" | |
}, | |
"resp": { | |
"type": "integer", | |
"example": 12 | |
}, | |
"status_agendamento": { | |
"type": "string", | |
"example": null | |
}, | |
"comanda": { | |
"type": "integer", | |
"example": null | |
}, | |
"comentario": { | |
"type": "string", | |
"example": "" | |
}, | |
"tipo": { | |
"type": "integer", | |
"example": 3 | |
}, | |
"id_paciente": { | |
"type": "string", | |
"example": "241" | |
}, | |
"data_criacao": { | |
"type": "string", | |
"example": null | |
}, | |
"data_atualizacao": { | |
"type": "string", | |
"example": null | |
}, | |
"canal_origem": { | |
"type": "string", | |
"example": null | |
} | |
} | |
}, | |
"AgendamentoLog": { | |
"type": "object", | |
"properties": { | |
"datetime": { | |
"type": "string", | |
"example": "2023-06-20 18:00:38" | |
}, | |
"id": { | |
"type": "string", | |
"example": "5047" | |
}, | |
"id_user": { | |
"type": "string", | |
"example": "3" | |
}, | |
"obj_id": { | |
"type": "string", | |
"example": "734" | |
}, | |
"obj_json": { | |
"type": "string", | |
"example": "{\"id\":\"1734\",\"data\":\"21/06/2023 13:00:00\",\"id_paciente\":\"249\",\"nome_paciente\":\"Ana\",\"id_responsavel\":\"10\",\"nome_responsavel\":\"Anderson Hotmail\",\"total\":\"3444.00\",\"status\":\"1\",\"id_servico\":\"206\",\"nome_servico\":\"Adasdsadsadds\",\"comentario\":\"algo\",\"lembrete\":\"1\",\"id_object\":\"9106\",\"servicos\":[],\"tempo\":\"00:35:00\",\"telefone\":\"47988827445\",\"email\":\"\",\"datajp\":\"2023-06-21 13:00:00\"}" | |
}, | |
"obj_name": { | |
"type": "string", | |
"example": "consulta" | |
}, | |
"obj_type": { | |
"type": "string", | |
"example": "insert" | |
}, | |
"profissional": { | |
"type": "string", | |
"example": "Juliano Almeid" | |
} | |
} | |
}, | |
"ApiResponse": { | |
"type": "object", | |
"properties": { | |
"code": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"type": { | |
"type": "string" | |
}, | |
"message": { | |
"type": "string" | |
} | |
}, | |
"xml": { | |
"name": "##default" | |
} | |
} | |
}, | |
"securitySchemes": { | |
"Bearer": { | |
"type": "apiKey", | |
"name": "Authorization", | |
"in": "header" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment