StoryForger is an online application that allows you to create and share choose-your-own-adventure stories, all with the power of your browser!
Created as a project for 6.1040/6.170 in Fall 2022
Body
username
{string} - The user's usernamepassword
{string} - The user's password
Returns
- A success message
- An object with user's details (without password)
Throws
403
if the user is already logged in400
if username or password is not in correct format format or missing in the req401
if the user login credentials are invalid
Returns
- A success message
Throws
403
if user is not logged in
Body
username
{string} - The user's usernamepassword
{string} - The user's password
Returns
- A success message
- An object with the created user's details (without password)
Throws
403
if there is a user already logged in400
if username or password is in the wrong format409
if username is already in use
Body (no need to add fields that are not being changed)
username
{string} - The user's usernamepassword
{string} - The user's password
Returns
- A success message
- An object with the update user details (without password)
Throws
403
if the user is not logged in400
if username or password is in the wrong format409
if the username is already in use