POST /signup
- Route for creating a new user
- body:{"email": "[email protected]","password": "DonJoe27"}
- response: {"token": "JWT_TOKEN"}
POST /signin
- Route for signing an existing user
- body:{"email": "[email protected]","password": "DonJoe27"}
- Response: {"token": JWT_TOKEN}
Tests
POST /tests
- Route for creating new tests
- headers: {"Authorization": "Bearer TOKEN"}
- body: {"name": "Matrixes and vector space","pdfUrl": "https://mywebsite.com/linearAlgebra/firstExam.pdf","categoryId": "1","disciplineId": "5","teacherId": "6",}
GET /tests/disciplines
- Route for finding all tests organized by terms and disciplines
- headers: {"Authorization": "Bearer TOKEN"}
- Response: array of tests
GET /credentials/teachers
- Route for finding all tests organized by teachers
- headers: {"Authorization": "Bearer TOKEN"}
- Response: credential