Skip to content

Commit 4008524

Browse files
committed
feat: adicionar módulo Resposta ao AppModule
1 parent 8386126 commit 4008524

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

src/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { EditalModule } from './edital/edital.module';
99
import { InscricaoModule } from './inscricao/inscricao.module';
1010
import { MinioClientModule } from './minio/minio-client.module';
1111
import { PerguntaModule } from './pergunta/pergunta.module';
12+
import { RespostaModule } from './resposta/resposta.module';
1213
import { StepModule } from './step/step.module';
1314
import { VagasModule } from './vagas/vagas.module';
1415
import { ValidacaoModule } from './validacao/validacao.module';
@@ -37,6 +38,7 @@ import { HealthModule } from './health/health.module';
3738
ValidacaoModule,
3839
StepModule,
3940
PerguntaModule,
41+
RespostaModule,
4042
VagasModule,
4143
DadoModule,
4244
ValorDadoModule,

test/respostas.http

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
### Variáveis
2+
@baseUrl = http://localhost:3000
3+
@alunoId = 1
4+
@editalId = 1
5+
@stepId = 1
6+
7+
8+
GET {{baseUrl}}/respostas/aluno/{{alunoId}}/edital/{{editalId}}/step/{{stepId}}/perguntas-com-respostas
9+
10+
### =============================================
11+
### OUTRAS ROTAS DE RESPOSTAS
12+
### =============================================
13+
14+
### Listar todas as respostas
15+
GET {{baseUrl}}/respostas
16+
17+
### Buscar resposta por ID
18+
GET {{baseUrl}}/respostas/1
19+
20+
### Todas as respostas de um aluno em um edital
21+
GET {{baseUrl}}/respostas/aluno/{{alunoId}}/edital/{{editalId}}
22+
23+
### Todas as respostas de um aluno em um step específico
24+
GET {{baseUrl}}/respostas/aluno/{{alunoId}}/edital/{{editalId}}/step/{{stepId}}
25+
26+
### Todas as respostas de uma pergunta em um edital
27+
GET {{baseUrl}}/respostas/pergunta/1/edital/{{editalId}}
28+
29+
### =============================================
30+
### CRIAR/ATUALIZAR/DELETAR RESPOSTAS
31+
### =============================================
32+
33+
### Criar uma nova resposta
34+
POST {{baseUrl}}/respostas
35+
Content-Type: application/json
36+
37+
{
38+
"inscricaoId": 1,
39+
"perguntaId": 1,
40+
"texto": "Minha resposta aqui",
41+
"valorTexto": null,
42+
"valorOpcoes": null
43+
}
44+
45+
### Atualizar uma resposta
46+
PATCH {{baseUrl}}/respostas/1
47+
Content-Type: application/json
48+
49+
{
50+
"texto": "Resposta atualizada"
51+
}
52+
53+
### Validar uma resposta
54+
PATCH {{baseUrl}}/respostas/1/validate
55+
Content-Type: application/json
56+
57+
{
58+
"validada": true,
59+
"dataValidade": "2026-12-31T23:59:59.000Z"
60+
}
61+
62+
### Deletar uma resposta
63+
DELETE {{baseUrl}}/respostas/1

0 commit comments

Comments
 (0)