0% found this document useful (0 votes)
1 views

Projeto API Rest

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Projeto API Rest

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

EQUIPE

GRR20220048 André Alex Jankoski


GRR20220046 João Vitor Araújo dos Santos
GRR20193949 Fernanda Obayashi
GRR20222553 Larissa Silveiro Desbessel
GRR20204494 Mário Morais Neto
GRR20196062 Rafael Kulka

# Requisito Nome Requisito


R1 Autocadastro
R2 Login/Logout
R3 Tela Inicial de Cliente

R4 Alteração de Perfil
R5 Depositar

R6 Saque

R7 Transferência
R8 Consulta de extrato
R9 Tela Inicial do Gerente

R10 Aprovar Cliente


R11 Rejeitar Cliente

R12 Consultar Todos os Clientes

R13 Consultar Cliente


R14 Consultar 3 melhores clientes

R15 Tela Inicial Admin

R16 Relatório de Clientes

R17 (CRUD de Gerentes) Inserção de Gerente


R18 (CRUD de Gerentes) Remoção de Gerente
R19 (CRUD de Gerentes) Listagem de Gerentes

R20 (CRUD de Gerentes) Alteração de Gerente


endpoint Método HTTP
/registrar POST
/login POST
/clientes/{idCliente} GET

/clientes/{idCliente} PUT
/clientes/{idCliente}/depositar POST

/clientes/{idCliente}/sacar POST

/clientes/{idCliente}/transferir POST
/clientes/{idCliente}/extrato GET
/gerentes/{idGerente}/contas-pendentes GET

/gerentes/{idGerente}/avaliar-conta/{idConta}
POST
/gerentes/{idGerente}/avaliar-conta/{idConta} POST
/gerentes/{idGerente}/clientes GET
/gerentes/{idGerente}/clientes?name=mario&cpf=123
GET
/gerentes/{idGerente}/melhores-clientes GET

/admin GET

/admin/clientes GET

/admin/gerentes POST
/admin/gerentes/{idGerente} DELETE
/admin/gerentes GET

/admin/gerentes/{idGerente} PUT
"salary": 50000.0,
"email": "[email protected]",
"role": "CLIENT"
},
"account": {
"accountNumber": 1001,
"balance": 1000.0,
"limit": 5000.0,
"clientId": 1,
"managerId": 101,
"accountApproval": {
{ {[ "approvalStatus":
"cpf": "12345678901", "PENDING_APPROVAL",
{ "client": {
"email": "[email protected]", { "cpf": "approvedBy":
"id": "12345678901",
1, null,
"password": "password123", "client":
"name": {
"approvedAt":
"Mario",
"cpf": "12345678901", null
{ "name": "Mario", "id":
}"name":
{ "salary": 1, 5000.0,
"Mario",
"monthlySalary":
"email": 5000.0
"[email protected]", "cpf":
}"client":
"email": "12345678901",
"salary": {
"[email protected]",
50000.0,
JSON de envio
} "password": JSON de retorno
"name":
} "role": "Mario", Retorno Se SUCESSO
"password123" "id": 1,"CLIENT"
"email": "[email protected]",
{} }{[ "salary": 50000.0,
"cpf": "12345678901",
"role": "CLIENT" 201 CREATED
"email": "[email protected]",
{ "name": "Mario", }, "name": "Mario",
"client":
"role": { 50000.0,
"CLIENT"
200 OK
"salary": 5000.0,
"accountId": 123456789, "salary":
"account": {
- "email": "[email protected]" "id": 1,
}}"accountNumber":
"email": "[email protected]", 200 OK
{ "value": 100.0, "cpf": "12345678901", 1001,
} "accountId":
"date": "2024-04-22"
123456789, "role":
"balance":"CLIENT"
1000.0,
}}"name":
"limit":
"Mario", 200 OK
}{ "value": 100.0, "salary":5000.0,
50000.0,
"date": "2024-04-22" - "clientId":
"email": 1,
"[email protected]", 200 OK
"originAccountId": 123456789, "managerId":
} "destinationAccountId": 987654321, "role": "USER"101,
"value": 100.0, - },"accountApproval": { 200 OK
"approvalStatus":
"account": {
"date": "2024-04-22" "PENDING_APPROVAL",
} "accountNumber": 1001,
"approvedBy":
"balance": null,
1000.0,
- "approvedAt": null 200 OK
{ "limit": 5000.0,
- "isApproved": true, - }"clientId": 1, 200 OK
{ "accountId": 123456789, } "managerId": 101,
- "isApproved":
"managerCpf":false ]} 200 OK
"12345678901", {[ "accountApproval":
{[ "client": { {
"accountId": 123456789,
"refusalReason": null "approvalStatus":
"id": 1,
"manager": { "PENDING",
} "managerCpf": "12345678901", "approvedBy":
"cpf":
"id": "12345678901",
1,
"client": { "Manager X",
"refusalReason": "feio" "approvedAt":
"name":
- "cpf": "Mario", "2024-04- 200 OK
} {[ "id": 1,"12345678901",
"client": {
22T12:00:00Z"
"salary":
"name": 50000.0,
"Mario",
- "cpf":
}"id":
"12345678901",
1,
"email":
"phone": "[email protected]",
"1234567890", 200 OK
"name": "Mario",
},"cpf":
"role":"12345678901",
"email": "CLIENT"
"[email protected]",
"salary": "Mario",
50000.0,
- }]}"name":
"manager":
"accountIds":
"email": { [1001, 1002, 1003]
"[email protected]", 200 OK
"salary":
"id": 101, 50000.0,
},"role": "CLIENT"
"email": "[email protected]",
- },"cpf":
"role":
"98765432109",
"totalClients":
"CLIENT"
10, 200 OK
"name": "Mario",
"totalPositiveBalance": 50000.0,
-{ { }]} "phone": "987654321",
"totalNegativeBalance": 10000.0 200 OK
"email": "[email protected]", ]} "email": "[email protected]",
"cpf": "12345678901",
- "cpf": "12345678901", "accountIds":
"name": "Mario", [1001, 1002, 1003] 200 OK
"password": "password123", }
"phone": "1234567890",
"name": "Mario", ]}"email":
{[ "managers": {
"[email protected]",
- "monthlySalary": 5000.0 "cpf": "12345678901",
"accountIds": [1001, 1002, 1003] 200 OK
{} {} "name": "Mario",
"email": "[email protected]", "phone":
"cpf": "1234567890",
"12345678901", 201 CREATED
"password": "newpassword123", "email": "[email protected]",
"name": "Mario",
- - "accountIds": [1001, 1002, 1003] 200 OK
"name": "Mario", "phone": "1234567890",
- "monthlySalary": 5500.0 }]}"email": "[email protected]", 200 OK
} "accountIds": [1001, 1002, 1003]
} 200 OK
Retorno Se SUCESSO Retorno Se ERRO Retorno Se ERRO Retorno Se ERRO
409 CONFLICT
404 NOT FOUND
404 NOT FOUND 401 UNAUTHORIZED

404 NOT FOUND 401 UNAUTHORIZED


404 NOT FOUND 401 UNAUTHORIZED

404 NOT FOUND 401 UNAUTHORIZED

404 NOT FOUND 401 UNAUTHORIZED


204 NO CONTENT 404 NOT FOUND 401 UNAUTHORIZED
404 NOT FOUND 401 UNAUTHORIZED

404 NOT FOUND 401 UNAUTHORIZED


404 NOT FOUND 401 UNAUTHORIZED

204 NO CONTENT 404 NOT FOUND 401 UNAUTHORIZED

204 NO CONTENT 404 NOT FOUND 401 UNAUTHORIZED


204 NO CONTENT 404 NOT FOUND 401 UNAUTHORIZED

401 UNAUTHORIZED

204 NO CONTENT 409 CONFLICT 401 UNAUTHORIZED

401 UNAUTHORIZED
401 UNAUTHORIZED
204 NO CONTENT 401 UNAUTHORIZED

401 UNAUTHORIZED
Retorno Se ERRO
400 BAD REQUEST
400 BAD REQUEST
400 BAD REQUEST

400 BAD REQUEST


400 BAD REQUEST

400 BAD REQUEST

400 BAD REQUEST


400 BAD REQUEST
400 BAD REQUEST

400 BAD REQUEST


400 BAD REQUEST

400 BAD REQUEST

400 BAD REQUEST


400 BAD REQUEST

400 BAD REQUEST

400 BAD REQUEST

400 BAD REQUEST


400 BAD REQUEST
400 BAD REQUEST

400 BAD REQUEST

You might also like