FastAPI Application
Documentation
Additionally, there are test 'curl' scripts within the bin directory of this project. Below is a
list of the scripts and description:
- (venv) $ bash bin/login.sh - login and return a JWT token storing it in the 'token.in' file
- (venv) $ bash bin/accounts.sh - List all accounts created
- (venv) $ bash bin/account_create.sh - Create an Account
- (venv) $ bash bin/account_update.sh - Update an Account at record id 1
- (venv) $ bash bin/account_delete.sh - Delete an Account at record id 1
- (venv) $ bash bin/refresh.sh - Refresh the JWT token storing the refreshed JWT token in the 'token.in' file
- (venv) $ bash bin/logout.sh - Logout
NOTE: You must run these scripts within the 'venv' environment. This can be done by:
- $ source venv/bin/activate
NOTE: If this is the first time you have done this, you'll want to load all libraries first.
- (venv) $ python3 -m pip install --upgrade pip
- (venv) $ python3 -m pip install -r requirements.txt
After this is done, run the scripts below in order and ensure all is working.
- (venv) $ bash bin/login.sh
- (venv) $ bash bin/accounts.sh
- (venv) $ bash bin/account_create.sh
- (venv) $ bash bin/accounts.sh
- (venv) $ bash bin/logout.sh