Api desenvolvida para auxiliar no controle financeiro pessoal.
- Criar um usuário
- Autenticar um usuário
- Mostrar perfil de um usuário
- Criar uma operação
- Mostrar o balanço
- Mostrar uma operação específica
graph TD;
A(Create User)-->B(User);
B(User)-->D(Authenticate User);
D(Authenticate User)-->E(Create statement);
D(Authenticate User)-->C(Show user Profile);
E(Create statement)-->F(Statement);
F(Statement)-->G(Get Balance);
F(Statement)-->H(Get Statement Operation);
👉 Rotas da aplicação
Routes | Request | Authenticated | Body | Headers | Route params | Response |
---|---|---|---|---|---|---|
/api/v1/users | post | ❌ | {name,email,password} | XXXXX | XXXXX | 201 |
/api/v1/profile | get | ✔️ | XXXXX | Token-JWT | XXXXX | User profile |
/api/v1/statements/balance | get | ✔️ | XXXXX | Token-JWT | XXXXX | All Statements and total balance |
/api/v1/statements/deposit | post | ✔️ | {amount,description} | Token-JWT | XXXXX | Deposit informations and 201 |
/api/v1/statements/withdraw | post | ✔️ | {amount,description} | Token-JWT | XXXXX | Withdraw informations and 201 |
/api/v1/statements/:statement_id | get | ✔️ | XXXXX | Token-JWT | statement_id | Statement information |
👉 Create User Controller √ should be able to create an User
👉 Authenticate User Controller
√ should be able to authenticate an user
√ should not be able to authenticate an user with incorrect email
√ should not be able to authenticate an user with incorrect password
√ should not be able to authenticate a non exists user
👉 Show User Profile Controller
√ should not be able to show the user profile of non-authenticated user
√ should be able to show the user profile