Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 6

Frontend URL https://fe-mentorship.vercel.

app/
Backend URL https://api-mentorship-shecodesvietnam.herokuapp.com/

Routes Endpoint
/api/mentees
/api/mentees/me
/api/mentees/me
/api/mentees/me/avatar
/api/mentees/auth
Authentication
/api/mentees/auth/token_refresh
/api/mentees/auth/email_confirmation/<token>
/api/mentees/auth/password_reset_request
/api/mentees/auth/password_reset/<token>
/api/mentees/auth/password_change

Request /api/requests

/api/mentors
/api/mentors/<int:id>
Mentor /api/mentors
/api/mentors/<int:id>
/api/mentors/<int:id>/avatar
Method Headers
Content-Type: application/json
POST Authorization: Bearer <JWT: Access Token>
Content-Type: application/json
GET Authorization: Bearer <JWT: Access Token>
Content-Type: application/json
PUT Authorization:
Authorization: Bearer
Bearer <JWT:
<JWT: Access
Access Token>
Token>
PUT Enctype: multipart/form-data
POST Content-Type:
Content-Type: application/json
application/json
POST Authorization: Bearer <JWT: Refresh Token>
GET Content-Type: application/json
POST Content-Type: application/json
GET Content-Type: application/json
Content-Type: application/json
POST Authorization: Bearer <JWT: Access Token>
Content-Type: application/json
POST Authorization: Bearer <JWT: Access Token>
Content-Type: application/json
GET Authorization: Bearer <JWT: Access Token>
Content-Type: application/json
GET Authorization: Bearer <JWT: Access Token>
POST Content-Type: application/json
PUT Content-Type:
Content-Type: application/json
application/json
PUT Enctype: multipart/form-data
Body
password: String(min=6, max=128)
name: String(min=2, max=40)
school: Array(JSON(name: String(50), major: String(50)))
exp: Array(JSON(name: String(50), position: String(50), start_date: Date, end_date: Date))
avatar: LargeBinary max=50)
email: String(min=6,
password: String(min=6, max-128)

email: String(min=6, max=50)


password: String(min=6, max=128)
password2: String(min=6, max=128)

mentor_id: Integer

school: Array(JSON(name: String(50), major: String(50)))


exp: Array(JSON(name:
school: String(50),
Array(JSON(name: position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name: String(50), position: String(50), start_date: Date, end_date: Date))
avatar: LargeBinary
Params
Return
school: Array(JSON(name: String(50), major: String(50)))
exp: Array(JSON(name:
school: Array(JSON(name: String(50), position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name:
school: Array(JSON(name: String(50), position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name:
school: Array(JSON(name: String(50), position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp:
<JWT:Array(JSON(name:
Access Token> String(50), position: String(50), start_date: Date, end_date: Date))
<JWT: Refresh Token>
<JWT: Access Token>
email_confirmed: Boolean
is_active: Default(True)
msg: "Request Successfully"
msg: "Token Verified"
msg: "Reset Successfully"
mentor_id: Integer
created_at: Default(Date.now)
school: Array(JSON(name: String(50), major: String(50)))
exp: Array(JSON(name:
school: String(50),
Array(JSON(name: position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name:
school: String(50),
Array(JSON(name: position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name:
school: String(50),
Array(JSON(name: position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name:
school: String(50),
Array(JSON(name: position:
String(50), major:String(50),
String(50)))start_date: Date, end_date: Date))
exp: Array(JSON(name: String(50), position: String(50), start_date: Date, end_date: Date))
Description Notes
Mentee Register
Mentee Profile
Mentee Update
Mentee Avatar Update
Mentee Login
Mentee Token Refresh Token is attached to email
Mentee
Mentee Email Confirmation
Password Reset inbox
Request
Mentee Verify Password Token is attached to email
Reset Token inbox
Mentee Password Reset

Booking Request

Get all mentors


Get mentor by id fb_url, github_url, school,
Create new mentor exp is optional
fb_url, github_url, school,
Update mentor info exp is optional
Update mentor avatar

You might also like