Launching the application
- Set the connection to the database
- Create a database: php bin/console doctrine:database:create
- Run migrations: php bin/console doctrine:migrations:migrate
- Start the server: server symfony server:start
Methods
- /api/create/account/{pin}
Create an account with pin - /api/operation/{operation}/cash/{cash}/number/{number}/pin/{pin}
operation {1} add cash to the account
operation {-1} get cash from the account - /api/account/history/number/{number}/pin/{pin}
Get account history. Enter the number and pin
Command
- php bin/console app:account-history
Get account history. Enter the number and pin