{"openapi":"3.0.1","info":{"title":"Work Innovation - Auth Server","description":"Aplicação responsável por gerenciar o domínio de Segurança da Work Innovation LTDA.","contact":{"name":"Work Innovation LTDA.","url":"https://www.workinnovation.com.br","email":"contato@workinnovation.com.br"},"version":"1.0"},"servers":[{},{"url":"https://auth.workinnovation.com.br","description":"URL do ambiente de Produção"}],"paths":{"/v1/api/usuarios":{"post":{"tags":["cadastro-usuario"],"summary":"Endpoint de cadastro de usuário e suas permissões","description":"Endpoint responsável por gerenciar o cadastro de usuário com suas devidas permissões","operationId":"cadastrarUsuario","parameters":[{"name":"usuario","in":"header","required":true,"schema":{"type":"string"}},{"name":"senha","in":"header","required":true,"schema":{"type":"string"}},{"name":"descricao","in":"header","required":true,"schema":{"type":"string"}},{"name":"idTransportador","in":"header","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"permissoes","in":"header","required":false,"schema":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CadastroUsuarioResposta"}}}}}}},"/v1/api/usuarios/ativacao":{"post":{"tags":["ativacao-usuario"],"summary":"Endpoint de ativação lógica de de usuário e suas permissões","description":"Endpoint responsável por efetuar a ativação lógica do usuário","operationId":"ativarUsuario","parameters":[{"name":"idUsuario","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CadastroUsuarioResposta"}}}}}}},"/v1/api/seg/token/renovacao":{"post":{"tags":["renovacao-token-acesso"],"summary":"Endpoint de renovação de token de acesso","description":"Esse endpoint recebe token de atualização para renovar o token de acesso","operationId":"renovarTokenAcesso","parameters":[{"name":"token","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutenticacaoUsuarioResposta"}}}}}}},"/v1/api/seg/autenticacao":{"post":{"tags":["autenticacao"],"summary":"Endpoint de autenticação de usuário","description":"Esse endpoint recebe usuario e senha para realizar a autenticação de um usuário","operationId":"autenticarUsuario","parameters":[{"name":"usuario","in":"header","required":true,"schema":{"type":"string"}},{"name":"senha","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutenticacaoUsuarioResposta"}}}}}}},"/v1/api/usuarios/desativacao":{"delete":{"tags":["desativacao-usuario"],"summary":"Endpoint de desativação lógica de de usuário e suas permissões","description":"Endpoint responsável por efetuar a desativação lógica do usuário","operationId":"desativarUsuario","parameters":[{"name":"idUsuario","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespostaPadraoErro"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CadastroUsuarioResposta"}}}}}}}},"components":{"schemas":{"RespostaPadraoErro":{"type":"object","properties":{"codigoStatus":{"type":"integer","format":"int32"},"data":{"type":"string"},"mensagem":{"type":"string"},"recurso":{"type":"string"}}},"CadastroUsuarioResposta":{"type":"object","properties":{"mensagem":{"type":"string"}}},"AutenticacaoUsuarioResposta":{"type":"object","properties":{"tipo":{"type":"string"},"id":{"type":"integer","format":"int64"},"usuario":{"type":"string"},"tokenAcesso":{"type":"string"},"dtExpTokenAcesso":{"type":"string","format":"date-time"},"tokenAtualizacao":{"type":"string"},"dtExpTokenAtualizacao":{"type":"string","format":"date-time"},"permissoes":{"type":"array","items":{"type":"string"}}}}}}}