Closed VerasThiago closed 5 years ago
Based on #46
Now the API need to pass JWT genereted at the login request.
JWT
All the requests need to be authenticated (except the Admin and Student login).
Some requests only return StatusCode 200 if the JWT was created by an admin with Professor : true
StatusCode 200
Professor
true
POST "/admin" DELETE "/admin" DELETE "/student" POST "/class" PUT "/class" DELETE "/class" POST "/project/type" PUT "/project/type" DELETE "/project/type"
POST "/admin"
DELETE "/admin"
DELETE "/student"
POST "/class"
PUT "/class"
DELETE "/class"
POST "/project/type"
PUT "/project/type"
DELETE "/project/type"
Based on #46
Now the API need to pass
JWT
genereted at the login request.All the requests need to be authenticated (except the Admin and Student login).
Some requests only return
StatusCode 200
if theJWT
was created by an admin withProfessor
:true
POST "/admin"
DELETE "/admin"
DELETE "/student"
POST "/class"
PUT "/class"
DELETE "/class"
POST "/project/type"
PUT "/project/type"
DELETE "/project/type"