Teacher Authentication
Teacher authentication operations
Authenticate teacher and generate access token
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
passwordstringRequiredExample:
Teacher password
password123Responses
200
Login successful
application/json
400
Missing credentials
application/json
401
Invalid credentials
application/json
500
Internal server error
application/json
post
/teacher/loginLogout teacher and clear session
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Logout successful
application/json
401
Unauthorized access
application/json
500
Internal server error
application/json
post
/teacher/logoutLast updated