- Instala as dependĂȘncias = yarn
- Iniciar o container no docker = docker-compose up -d
- Rodar as migrations = yarn typeorm migration:run -d src/data-source.ts
- Rodar os testes = yarn test
- Iniciar o servidor = yarn dev
-
Post (Create User) URl: http://localhost:4000/register Logged: false Parameters: { Body: { username: string password: string } }
-
Post (Login) URl: http://localhost:4000/login Logged: false Parameters: { Body: { username: string password: string } }
- Get (Get Balance) URl: http://localhost:4000/balance Logged: true Parameters: { Token: { userId: string } }
-
Post (Transfer-CashOut) URl: http://localhost:4000/transfer Logged: true Parameters: { Token: { userId: string } Body: { username: string value: number } }
-
Get (Get Transactions) URl: http://localhost:4000/transactions Logged: true Parameters: { Token: { userId: string } }
-
Get (Get Transactions CashIn) URl: http://localhost:4000/transactions/cashIn Logged: true Parameters: { Token: { userId: string } }
-
Get (Get Transactions CashOut) URl: http://localhost:4000/transactions/cashOut Logged: true Parameters: { Token: { userId: string } }
-
Get (Get Transactions by Date) URl: http://localhost:4000/transactions/date/{date} Logged: true Parameters: { Token: { userId: string } Params: { date: { type: string, format: 'yyyy-mm-dd' } } }
-
Get (Get Transactions by Date and CashIn) URl: Logged: true Parameters: { Token: { userId: string } Params: { date: { type: string, format: 'yyyy-mm-dd' } } }
-
Get (Get Transactions by Date and CashOut) URl: Logged: true Parameters: { Token: { userId: string } Params: { date: { type: string, format: 'yyyy-mm-dd' } } }