Skip to content

Register a new user using Swagger

Isabel Costa edited this page Dec 26, 2018 · 1 revision

This page will show how to register a new user into Mentorship System and verify the email using Swagger UI and a temporary email creation service provider.

  1. Go to the Backend public API page (you can find the most recent URL on README). You'll see a Swagger UI. Click on POST /register from User API.

Swagger UI that shows post method to register a new user

  1. Create a temporary email to create the new user, so that you can create multiple users without ever using your personal email.

For this, I tend to use https://temp-mail.org/ service. This will allow you to use an arbitrary email and verify the email to be able to login in the app and use protected APIs.

temporary email website

  1. Copy the email you see in the website.

random email on temp email service provider

  1. Register the new user using POST /register from User API. Here you can fill the user data however you want as long the username and the email is unique in the system.

filling post data for registering a user  into the system

  1. Check for new emails on the temporary email inbox.

Temporary Email inbox

  1. Open the email and click the link provided in the email body.

Email from Systers OS on Temporary Email inbox

  1. By clicking the above link, you'll be forwarded to this page which shold confirm you successfully confirmed your email.

Email confirmation response