[Janela Simulado] Card 03 · api-vcnafacul · proxy PATCH disponibilidade + DTOs - #506
Merged
FernandoAlmeidaPinto merged 5 commits intoAug 1, 2026
Conversation
Closed
8 tasks
FernandoAlmeidaPinto
deleted the
feature/simulado-janela-disponibilidade-proxy
branch
August 1, 2026 16:37
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Janela Simulado] Card 03 · api-vcnafacul · Proxy PATCH disponibilidade + DTOs
Etapa 5 (Janela Simulado). Camada de proxy pura no gateway para o endpoint de janela de disponibilidade implementado no ms-simulado (Cards 01+02, PR vcnafacul/ms-simulado#164).
O que muda
PATCH /mssimulado/simulado/:id/disponibilidade— novo endpoint proxy, gated porJwtAuthGuard(→ 401 sem token) +PermissionsGuardcomcadastrarProvas(→ 403 sem permissão). Fazaxios.patchparav1/simulado/:id/disponibilidadedo ms-simulado.SimuladoDTO(output) ganhadisponivelDe/disponivelAte(string | null, ISO), expostos emGET /mssimulado/simulado/:ide afins.UpdateDisponibilidadeDTO(input) espelho, com validação@IsDate+@Type(() => Date)e@IsOptional(aceitanullpara limpar).Comportamento
disponivelDe >= disponivelAte→ 400) e o gate 403 vivem no ms-simulado; o axios wrapper propaga status/corpo originais (400/403 do ms surgem intactos, incluindo{ message, status }do gate).Testes
Dependência
Requer o deploy do ms-simulado (PR vcnafacul/ms-simulado#164) para funcionar de ponta a ponta.
🤖 Generated with Claude Code