1- install packages by running
2- copy .env.example and past it in same root folder and change the name to ".env"
3- open .env and fillup the date
4- make sure redis database is running
5- run project
Student Authentication Endpoints
Parameter
Type
Description
email
string
Required .
password
string
Required .
{
"access_token" : string ,
"refresh_token" : string ,
"type" : string ,
"expiresIn" : string
}
POST /auth/student/refresh
Parameter
Type
Description
refreshToken
string
Required .
{
"access_token" : string ,
"refresh_token" : string ,
"type" : string ,
"expiresIn" : string
}
POST /auth/student/logout
Header
Value
Description
Authorization
Bearer "accessToken"
Required .
{
"success" : boolean ,
"message" : string
}
Teacher Authentication Endpoints
Parameter
Type
Description
email
string
Required .
password
string
Required .
{
"access_token" : string ,
"refresh_token" : string ,
"type" : string ,
"expiresIn" : string
}
POST /auth/teacher/refresh
Parameter
Type
Description
refreshToken
string
Required .
{
"access_token" : string ,
"refresh_token" : string ,
"type" : string ,
"expiresIn" : string
}
POST /auth/teacher/logout
Header
Value
Description
Authorization
Bearer "accessToken"
Required .
{
"success" : boolean ,
"message" : string
}