Updated Sunday July 11th 2021 by cassioblu55
responding to this assessment
pipenv install
pipenv is required to be installed, it is used for dependency management
Activate your virtual environment to ensure every subsequent command will use the virtual environment using pipenv:
pipenv shell
./manage.py migrate
This will update your local database with the current db models.
Now, in the terminal start the Django server by running, this project should run on port 8000:
./manage.py runserver
Run tests. Development/QA/Production will not deploy if unit tests are failing.
pipenv install --dev
pipenv run pytest
- View a list of teams, including their members
- List of all teams by sending
GET
request to:localhost:8000/teams
- Get the list of team members by sending a
GET
request to:localhost:8000/teams/1
where1
is the id of the team
- List of all teams by sending
- Create new teams
- Send a
POST
request to:localhost:8000/teams/
Note the ending '/' is required
- Send a
- Add/remove team members
- To add a team member send a
POST
request to:localhost:8000/teams/member/
- To delete a team member send a
DELETE
request tolocalhost:8000/teams/member/1
where1
is the team member id
- To add a team member send a
- Swap two team member's position
- Send
POST
request tolocalhost:8000/teams/swap/
Note the ending '/' is required
- Send
- Notify team member
- First create an
event
, send aPOST
request to:localhost:8000/event/
Note the ending '/' is required - You will set the team assignment at the time of
event
creation - To perform the team notification logic send a
POST
request to:localhost:8000/event/1/call
where1
is the event id - Note no notification will actually be sent, a record of the call being sent will be created
- First create an