Manage Accounts
Create new accounts
POST
/user/create
Body(Json)
keys type Description username required username of the user required email of the user password required password of the user name optional real name of the user bio optional bio of the user pronounce optional pronounce of the username website optional website of the user
Responses
http code content-type response 200
application/json
{"statusCode":"200","message":"User created successfully","data":"$data"}
406
application/json
{"statusCode":"406","message":"Name cannot be less than 3 or over 150 characters","data":"null"}
406
application/json
{"statusCode":"406","message":"Username cannot be less than 3 or over 100 characters","data":"null"}
406
application/json
{"statusCode":"406","message":"Password cannot be less than 8 or over 200 characters","data":"null"}
406
application/json
{"statusCode":"406","message":"Invalid email","data":"null"}
406
application/json
{"statusCode":"406","message":"Bio cannot be over 200 characters","data":"null"}
400
application/json
{"statusCode":"400","message":"Username cannot contain white space",data"null"}
400
application/json
{"statusCode":"400","message":"Username cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"Username cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"Email cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"Email cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"name cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be bio","data":"null"}
400
application/json
{"statusCode":"400","message":"Website cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"Pronounce cannot be empty","data":"null"}
409
application/json
{"statusCode":"400","message":"User already exists","data":"null"}
409
application/json
{"statusCode":"400","message":"Email already exists","data":"null"}
Authenticate Users
POST
/user/auth
Body(Json)
keys type Description username required username of the user password required password of the user
Responses
http code content-type response 200
application/json
{"statusCode":"200","message":"Authenticated","data":"null"}
401
application/json
{"statusCode":"401","message":"Authenticated failed","data":"null"}
406
application/json
{"statusCode":"406","message":"Username cannot be less than 3 or over 100 characters","data":"null"}
406
application/json
{"statusCode":"406","message":"Password cannot be less than 8 or over 200 characters","data":"null"}
400
application/json
{"statusCode":"400","message":"Username cannot contain white space",data"null"}
400
application/json
{"statusCode":"400","message":"Username cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"Username cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be empty","data":"null"}
See if the user is logged in or not
GET
/user/logged
Responses
http code content-type response 200
application/json
{"statusCode":"200","message":"Validation","data":"true"}
404
application/json
{"statusCode":"404","message":"TOKEN was not found","data":"false"}
404
application/json
{"statusCode":"404","message":"No auth info found","data":"true"}
Get info about user
GET
/user/profile/$username$
Responses
http code content-type response 200
application/json
{"statusCode":"200","message":"{username}","data":"{"username":"{username}","name":"","bio":"","website":"","pronounce":"","followers":"","following":""}"}
404
application/json
{"statusCode":"404","message":"User not found","data":"false"}
Resets the password
POST
/user/password-reset
Body(Json)
keys type Description uuid required uuid of the request newPassword required new password of the user
Responses
http code content-type response 200
application/json
{"statusCode":"200","message":"New password has been set successfully","data":"null"}
406
application/json
{"statusCode":"406","message":"Password cannot be less than 8 or over 200 characters","data":"null"}
406
application/json
{"statusCode":"406","message":"Token is expired","data":"null"}
400
application/json
{"statusCode":"400","message":"Username cannot contain white space",data"null"}
400
application/json
{"statusCode":"400","message":"UUID cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"UUID cannot be empty","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be null","data":"null"}
400
application/json
{"statusCode":"400","message":"Password cannot be empty","data":"null"}
404
application/json
{"statusCode":"400","message":"Token not found","data":"null"}
404
application/json
{"statusCode":"400","message":"User not found","data":"null"}