Systers, an AnitaB.org community
Test the Register API using Postman (Mentorship-Backend)
Prerequisites
Install and verify the mentorship backend, and install Postman (HowTo )
Steps
- Run the mentorship-backend repository locally by following the steps in README.md given here
- Launch Postman and import the repository using Import -> Import Folder
- Under Collections, the project shows along with 11 available requests. POST Screenshot#1 of the left bar.
- Perform a POST request POST/register, enter the required details and POST Screenshot#2 of the response of the user successfully created.
- Perform additional POST requests for POST/register, with different combinations of usernames and passwords, and ensure the error messages are correct:
- Use the same username again
- Use a three character username
- Use a fifteen character username
- Use a blank username
- Use a blank password
- Explore other ways to generate error messages from the POST/register API Screenshot #3 of one of your error responses.
Work Submission
Share Screenshot #1, Screenshot #2, and Screenshot #3, by uploading them in a Google Drive folder / Pastebin Images and sharing a link which is publicly accessible.
Resources
- Refer User Authentication and Using Backend Swagger UI for reference.
- For additional information on installing and verifying Postman, see the references in this setup task
- If you need help or get lost, post a "New topic" in the coding-backend-tasks stream.
- Systers Mentorship Backend GitHub Repository
- Setup and Run section of the Mentorship Backend repository
Task tags
Students who completed this task
asawesome07, BartekPacia, smsingh, HardikJH