{ "swagger": "2.0", "info": { "title": "API Event+", "description": "API para gereciamento de Eventos - Backend API", "contact": { "name": "Joao Victor Alves Bautista - Turma Manhã", "url": "https://github.com/zAlves31" }, "version": "v1" }, "paths": { "/api/ComentariosEvento/ComentarioIA": { "post": { "tags": [ "ComentariosEvento" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/ComentariosEvento" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/ComentariosEvento": { "get": { "tags": [ "ComentariosEvento" ], "parameters": [ { "in": "query", "name": "id", "type": "string", "format": "uuid", "collectionFormat": "multi" } ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "ComentariosEvento" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/ComentariosEvento" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/ComentariosEvento/BuscarPorIdUsuario": { "get": { "tags": [ "ComentariosEvento" ], "parameters": [ { "in": "query", "name": "idUsuario", "type": "string", "format": "uuid", "collectionFormat": "multi" }, { "in": "query", "name": "idEvento", "type": "string", "format": "uuid", "collectionFormat": "multi" } ], "responses": { "200": { "description": "Success" } } } }, "/api/ComentariosEvento/{id}": { "delete": { "tags": [ "ComentariosEvento" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/ComentariosEvento/ListarSomenteExibe": { "get": { "tags": [ "ComentariosEvento" ], "parameters": [ { "in": "query", "name": "id", "type": "string", "format": "uuid", "collectionFormat": "multi" } ], "responses": { "200": { "description": "Success" } } } }, "/api/Evento": { "get": { "tags": [ "Evento" ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "Evento" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Evento" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Evento/ListarProximos": { "get": { "tags": [ "Evento" ], "responses": { "200": { "description": "Success" } } } }, "/api/Evento/ListarAnteriores": { "get": { "tags": [ "Evento" ], "responses": { "200": { "description": "Success" } } } }, "/api/Evento/{id}": { "get": { "tags": [ "Evento" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } }, "put": { "tags": [ "Evento" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" }, { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Evento" } } ], "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Evento" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/Instituicao": { "get": { "tags": [ "Instituicao" ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "Instituicao" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Instituicao" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Instituicao/{id}": { "get": { "tags": [ "Instituicao" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } }, "put": { "tags": [ "Instituicao" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" }, { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Instituicao" } } ], "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Instituicao" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/Login": { "post": { "tags": [ "Login" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/LoginViewModel" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Presencas": { "get": { "tags": [ "Presencas" ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "Presencas" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/PresencasEvento" } } ], "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "Presencas" ], "parameters": [ { "in": "query", "name": "id", "type": "string", "format": "uuid", "collectionFormat": "multi" } ], "responses": { "200": { "description": "Success" } } } }, "/api/Presencas/ListarMinhas/{id}": { "get": { "tags": [ "Presencas" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/Presencas/BuscarPorId/{id}": { "get": { "tags": [ "Presencas" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/TiposEvento": { "get": { "tags": [ "TiposEvento" ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "TiposEvento" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/TiposEvento" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/TiposEvento/{id}": { "get": { "tags": [ "TiposEvento" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } }, "put": { "tags": [ "TiposEvento" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" }, { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/TiposEvento" } } ], "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "TiposEvento" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/TiposUsuario": { "get": { "tags": [ "TiposUsuario" ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "TiposUsuario" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/TiposUsuario" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/TiposUsuario/{id}": { "get": { "tags": [ "TiposUsuario" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } }, "put": { "tags": [ "TiposUsuario" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" }, { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/TiposUsuario" } } ], "responses": { "200": { "description": "Success" } } }, "delete": { "tags": [ "TiposUsuario" ], "parameters": [ { "in": "path", "name": "id", "required": true, "type": "string", "format": "uuid" } ], "responses": { "200": { "description": "Success" } } } }, "/api/Usuario": { "post": { "tags": [ "Usuario" ], "consumes": [ "application/json-patch+json", "application/json", "text/json", "application/*+json" ], "parameters": [ { "in": "body", "name": "body", "schema": { "$ref": "#/definitions/Usuario" } } ], "responses": { "200": { "description": "Success" } } } } }, "definitions": { "ComentariosEvento": { "required": [ "descricao", "exibe", "idEvento", "idUsuario" ], "type": "object", "properties": { "idComentarioEvento": { "format": "uuid", "type": "string" }, "descricao": { "minLength": 1, "type": "string" }, "exibe": { "type": "boolean" }, "idUsuario": { "format": "uuid", "type": "string" }, "usuario": { "$ref": "#/definitions/Usuario" }, "idEvento": { "format": "uuid", "type": "string" }, "evento": { "$ref": "#/definitions/Evento" } }, "additionalProperties": false }, "Evento": { "required": [ "dataEvento", "descricao", "nomeEvento" ], "type": "object", "properties": { "idEvento": { "format": "uuid", "type": "string" }, "dataEvento": { "format": "date-time", "type": "string" }, "nomeEvento": { "minLength": 1, "type": "string" }, "descricao": { "minLength": 1, "type": "string" }, "idTipoEvento": { "format": "uuid", "type": "string" }, "tiposEvento": { "$ref": "#/definitions/TiposEvento" }, "idInstituicao": { "format": "uuid", "type": "string" }, "instituicao": { "$ref": "#/definitions/Instituicao" } }, "additionalProperties": false }, "Instituicao": { "required": [ "cnpj", "endereco", "nomeFantasia" ], "type": "object", "properties": { "idInstituicao": { "format": "uuid", "type": "string" }, "cnpj": { "maxLength": 14, "minLength": 0, "type": "string" }, "endereco": { "minLength": 1, "type": "string" }, "nomeFantasia": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "LoginViewModel": { "required": [ "email", "senha" ], "type": "object", "properties": { "email": { "minLength": 1, "type": "string" }, "senha": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "PresencasEvento": { "required": [ "idEvento", "idUsuario", "situacao" ], "type": "object", "properties": { "idPresencaEvento": { "format": "uuid", "type": "string" }, "situacao": { "type": "boolean" }, "idUsuario": { "format": "uuid", "type": "string" }, "usuario": { "$ref": "#/definitions/Usuario" }, "idEvento": { "format": "uuid", "type": "string" }, "evento": { "$ref": "#/definitions/Evento" } }, "additionalProperties": false }, "TiposEvento": { "required": [ "titulo" ], "type": "object", "properties": { "idTipoEvento": { "format": "uuid", "type": "string" }, "titulo": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "TiposUsuario": { "required": [ "titulo" ], "type": "object", "properties": { "idTipoUsuario": { "format": "uuid", "type": "string" }, "titulo": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "Usuario": { "required": [ "email", "idTipoUsuario", "nome", "senha" ], "type": "object", "properties": { "idUsuario": { "format": "uuid", "type": "string" }, "nome": { "minLength": 1, "type": "string" }, "email": { "minLength": 1, "type": "string" }, "senha": { "maxLength": 60, "minLength": 5, "type": "string" }, "idTipoUsuario": { "format": "uuid", "type": "string" }, "tipoUsuario": { "$ref": "#/definitions/TiposUsuario" } }, "additionalProperties": false } }, "securityDefinitions": { "Bearer": { "type": "apiKey", "name": "Authorization", "in": "header", "description": "Value: Bearer TokenJWT " } }, "security": [ { "Bearer": [ ] } ] }