-
Notifications
You must be signed in to change notification settings - Fork 2
Restful Services Endpoints
To register a new student, use the following endpoint,
Post Mapping:
http://localhost:8080/student/{username}/{password}/{name}
- @PathVariable : username
- @PathVariable : password
- @PathVariable : name
To view all the students registered, use the following endpoint,
Get Mapping:
http://localhost:8080/students/
To log in student, use the following endpoint,
Post Mapping:
http://localhost:8080/student/{username}/{password}
- @PathVariable : username
- @PathVariable : password
To log out, use the following endpoint,
Put Mapping:
http://localhost:8080/logout
To search for courses using the subject category, use the following endpoint,
Get Mapping:
http://localhost:8080/courses/{subject}
- @PathVariable: subject
To list all available tutors along with their information for the selected course, use the following endpoint,
Get Mapping:
http://localhost:8080/courses/tutors/{courseCode}
- @PathVariable: courseCode
To check room availability we use the following endpoint,
Post Mapping:
http://localhost:8080/room/checkAvail/{roomNr}/{testDate}/{testStartTime}/{testEndTime}
- @PathVariable : roomNr
- @PathVariable : testDate
- @PathVariable : testStartTime
- @PathVariable : testEndTime
To create a student review, we use the following endpoint,
Post Mapping:
http://localhost:8080//studentReview/{id}/{review}/{reviewerId}/{revieweeId}
- @PathVariable : roomNr
- @PathVariable : testDate
- @PathVariable : testStartTime
- @PathVariable : testEndTime
To view the logged-in student's previous and upcoming sessions, use the following endpoint,
Get Mapping:
http://localhost:8080/sessions