{ "openapi": "3.0.4", "info": { "title": "Api de Eventos", "description": "Aplicação para gerenciamento de eventos", "termsOfService": "https://example.com/terms", "contact": { "name": "Felipe Salgado", "url": "https://github.com/FelipeSomeraSalgado" }, "license": { "name": "Licensa de exemplo", "url": "https://example.com/license" }, "version": "v1" }, "paths": { "/api/ComentarioEvento/ListarTodos{id}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/ListarSomenteExibe{id}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/ComentarioEvento/BuscarPorIdUsuario{id}": { "get": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "idUsuario", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "idEvento", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/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/{id}": { "delete": { "tags": [ "ComentarioEvento" ], "parameters": [ { "name": "id", "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/{id}": { "get": { "tags": [ "Evento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Evento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EventoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/EventoDTO" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Evento" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Evento": { "get": { "tags": [ "Evento" ], "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "Evento" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EventoDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EventoDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/EventoDTO" } } } }, "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" } } } }, "/api/Instituicao/{id}": { "get": { "tags": [ "Instituicao" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Instituicao" ], "parameters": [ { "name": "id", "in": "path", "required": true, "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" } } }, "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/ListaMinhas/{idUsuario}": { "get": { "tags": [ "Presenca" ], "parameters": [ { "name": "idUsuario", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "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" } } }, "put": { "tags": [ "Presenca" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PresencaDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PresencaDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/PresencaDTO" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Presenca" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Presenca": { "get": { "tags": [ "Presenca" ], "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "Presenca" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PresencaDTO" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PresencaDTO" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/PresencaDTO" } } } }, "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": { "get": { "tags": [ "Usuario" ], "responses": { "200": { "description": "OK" } } }, "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 }, "idEvento": { "type": "string", "format": "uuid" }, "idUsuario": { "type": "string", "format": "uuid" } }, "additionalProperties": false }, "EventoDTO": { "required": [ "data", "descricao", "idInstituicao", "idTipoEvento", "nome" ], "type": "object", "properties": { "nome": { "minLength": 1, "type": "string" }, "descricao": { "minLength": 1, "type": "string" }, "data": { "type": "string", "format": "date-time" }, "idTipoEvento": { "type": "string", "format": "uuid" }, "idInstituicao": { "type": "string", "format": "uuid" } }, "additionalProperties": false }, "InstituicaoDTO": { "required": [ "cnpj", "endereco", "nomeFantasia" ], "type": "object", "properties": { "endereco": { "minLength": 1, "type": "string" }, "nomeFantasia": { "minLength": 1, "type": "string" }, "cnpj": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "LoginDTO": { "required": [ "email", "senha", "titulo" ], "type": "object", "properties": { "email": { "minLength": 1, "type": "string" }, "senha": { "minLength": 1, "type": "string" }, "titulo": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "PresencaDTO": { "type": "object", "properties": { "situacao": { "type": "boolean" }, "idUsuario": { "type": "string", "format": "uuid" }, "idEvento": { "type": "string", "format": "uuid" } }, "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": { "required": [ "email", "nome", "senha" ], "type": "object", "properties": { "nome": { "minLength": 1, "type": "string" }, "email": { "minLength": 1, "type": "string" }, "senha": { "minLength": 1, "type": "string" }, "idTipoUsuario": { "type": "string", "format": "uuid" } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Bota o token ai zé:", "scheme": "Bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ], "tags": [ { "name": "ComentarioEvento" }, { "name": "Evento" }, { "name": "Instituicao" }, { "name": "Login" }, { "name": "Presenca" }, { "name": "TipoEvento" }, { "name": "TipoUsuario" }, { "name": "Usuario" } ] }