Homework 20
- Due Nov 2, 2020 by 9am
- Points 1
- Submitting a file upload
Download and install Postman (https://www.postman.com/downloads/ Links to an external site.). Make an account.
Launch Postman. Follow the class recording (see this page for a list of class recordings Links to an external site.) to make a request and test of the "get-user-status" API action.
Now make these requests:
API action | Test |
signout | success should be true |
get-user-status | success should be false (the user shouldn't be signed in) |
signup (pick a username and password) |
success should be true, data should contain id and username, username should be the same as the one you signed in with |
get-user-status | success should be true, data should contain id and username, username should be the same as the one you signed in with |
signout | success should be true |
get-user-status | success should be false |
signin (use the username + password you used up above) |
success should be true, data should contain id and username, username should be the same as the one you signed in with |
get-user-status | success should be true, data should contain id and username, username should be the same as the one you signed in with |
Now start your sever (if you haven't already). Modify your api.php to use a different SQLite database file unless you don't mind overwriting all of your saved VidQuiz data.
In the Collection Runner window, click "Run VidQuiz". If you have to run the tests again, delete the SQLite database file (otherwise, signup will fail since you can't use the same username multiple times).
Once you get your tests working, OR if you have spent at least 60 minutes attempting to get them working, take a screenshot of your tests and upload it to this assignment.
Rubric
Criteria | Ratings | ||
---|---|---|---|
You posted a link to the specified directory on GitHub
|
|
||
You watched any required videos
|
|
||
|