{ "openapi": "3.0.4", "info": { "title": "API para gerenciamento de eventos", "description": "Aplicação para gerenciamneto de eventos", "termsOfService": "https://https://github.com/brunbu/terms", "contact": { "name": "Equipe de Suporte", "url": "https://https://github.com/brunbu/support" }, "license": { "name": "Exemplo de Licença", "url": "https://example.com/license" }, "version": "v1" }, "paths": { "/api/ComentarioEvento": { "post": { "tags": [ "ComentarioEvento" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ComentarioEventoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ComentarioEventoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ComentarioEventoDTO" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/{IdEvento}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "IdEvento", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/BuscarPorIdUsuario/{idUsuario, idEvento}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "idUsuario", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "idEvento", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "idUsuario, idEvento", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/BuscarPorEvento/{idEvento}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "idEvento", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/{id}": { "delete": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/ListarSomenteExibe/{idEvento}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "idEvento", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Evento/Usuario/{IdUsuario}": { "get": { "tags": [ "Evento" ], "parameters": [ { "name": "IdUsuario", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Evento/ListarProximos": { "get": { "tags": [ "Evento" ], "responses": { "200": { "description": "OK" } } } }, "/api/Evento": { "post": { "tags": [ "Evento" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Evento" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Evento" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Evento" } } } }, "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Evento" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Evento" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Evento" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Evento" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Evento" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Instituicao": { "get": { "tags": [ "Instituicao" ], "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "Instituicao" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InstituicaoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/InstituicaoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/InstituicaoDTO" } } } }, "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Instituicao" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InstituicaoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/InstituicaoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/InstituicaoDTO" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Instituicao/{id}": { "get": { "tags": [ "Instituicao" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Instituicao" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Login": { "post": { "tags": [ "Login" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginDTO" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Presenca/{id}": { "get": { "tags": [ "Presenca" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Presenca/ListaMinhas/{idUsuario}": { "get": { "tags": [ "Presenca" ], "parameters": [ { "name": "idUsuario", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Presenca": { "post": { "tags": [ "Presenca" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Presenca" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Presenca" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Presenca" } } } }, "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Presenca" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Presenca" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Presenca" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Presenca" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Presenca" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/TipoEvento": { "get": { "tags": [ "TipoEvento" ], "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "TipoEvento" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TipoEventoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TipoEventoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/TipoEventoDTO" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/TipoEvento/{id}": { "get": { "tags": [ "TipoEvento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "TipoEvento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TipoEventoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TipoEventoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/TipoEventoDTO" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "TipoEvento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/TipoUsuario": { "get": { "tags": [ "TipoUsuario" ], "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "TipoUsuario" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TipoUsuarioDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TipoUsuarioDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/TipoUsuarioDTO" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/TipoUsuario/{id}": { "get": { "tags": [ "TipoUsuario" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "TipoUsuario" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TipoUsuarioDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TipoUsuarioDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/TipoUsuarioDTO" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "TipoUsuario" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Usuario/{id}": { "get": { "tags": [ "Usuario" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Usuario": { "post": { "tags": [ "Usuario" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UsuarioDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UsuarioDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UsuarioDTO" } } } }, "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "ComentarioEventoDTO": { "type": "object", "properties": { "descricao": { "type": "string", "nullable": true }, "idUsuario": { "type": "string", "format": "uuid" }, "idEvento": { "type": "string", "format": "uuid" }, "dataComentarioEvento": { "type": "string", "format": "date-time", "readOnly": true }, "exibe": { "type": "boolean", "readOnly": true } }, "additionalProperties": false }, "Evento": { "type": "object", "properties": { "idEvento": { "type": "string", "format": "uuid" }, "nome": { "maxLength": 100, "minLength": 0, "type": "string", "nullable": true }, "dataEvento": { "type": "string", "format": "date-time" }, "descricao": { "type": "string", "nullable": true }, "idTipoEvento": { "type": "string", "format": "uuid", "nullable": true }, "idInstituicao": { "type": "string", "format": "uuid", "nullable": true }, "idInstituicaoNavigation": { "$ref": "#/components/schemas/Instituicao" }, "idTipoEventoNavigation": { "$ref": "#/components/schemas/TipoEvento" } }, "additionalProperties": false }, "Instituicao": { "type": "object", "properties": { "idInstituicao": { "type": "string", "format": "uuid" }, "nomeFantasia": { "maxLength": 100, "minLength": 0, "type": "string", "nullable": true }, "endereço": { "maxLength": 100, "minLength": 0, "type": "string", "nullable": true }, "cnpj": { "maxLength": 14, "minLength": 0, "type": "string", "nullable": true } }, "additionalProperties": false }, "InstituicaoDTO": { "required": [ "nomeFantasia" ], "type": "object", "properties": { "nomeFantasia": { "minLength": 1, "type": "string" }, "cnpj": { "type": "string", "nullable": true }, "endereco": { "type": "string", "nullable": true } }, "additionalProperties": false }, "LoginDTO": { "required": [ "email", "senha" ], "type": "object", "properties": { "email": { "minLength": 1, "type": "string" }, "senha": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "Presenca": { "type": "object", "properties": { "idPresenca": { "type": "string", "format": "uuid" }, "situacao": { "type": "boolean" }, "idUsaurio": { "type": "string", "format": "uuid", "nullable": true }, "idEvento": { "type": "string", "format": "uuid", "nullable": true } }, "additionalProperties": false }, "TipoEvento": { "type": "object", "properties": { "idTipoEvento": { "type": "string", "format": "uuid" }, "titulo": { "maxLength": 100, "minLength": 0, "type": "string", "nullable": true } }, "additionalProperties": false }, "TipoEventoDTO": { "required": [ "titulo" ], "type": "object", "properties": { "titulo": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "TipoUsuarioDTO": { "required": [ "titulo" ], "type": "object", "properties": { "titulo": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "UsuarioDTO": { "type": "object", "properties": { "nome": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "senha": { "type": "string", "nullable": true }, "idTituloUsuario": { "type": "string", "format": "uuid" } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Insira o token JWT", "scheme": "Bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ], "tags": [ { "name": "ComentarioEvento" }, { "name": "Evento" }, { "name": "Instituicao" }, { "name": "Login" }, { "name": "Presenca" }, { "name": "TipoEvento" }, { "name": "TipoUsuario" }, { "name": "Usuario" } ] }