Skip to content

italomagno/testChallenge-Ignite-FinAPI

Repository files navigation

Desenvolvimento da FinAPI

Api desenvolvida para auxiliar no controle financeiro pessoal.

👉 Funcionalidades relativas ao usuário:

  • Criar um usuário
  • Autenticar um usuário
  • Mostrar perfil de um usuário

👉 Funcionalidades relativas as Operações:

  • Criar uma operação
  • Mostrar o balanço
  • Mostrar uma operação específica

👉 Mapa mental:

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);
Loading

👉 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

Testes de integração

👉 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published