Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes Definition #18

Open
muddassir-lateef opened this issue Aug 17, 2022 · 8 comments
Open

Routes Definition #18

muddassir-lateef opened this issue Aug 17, 2022 · 8 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@muddassir-lateef
Copy link
Collaborator

muddassir-lateef commented Aug 17, 2022

All the routes of each schema shall be defined in this issue

Use the approriate formatting for better readability.

  • Enclose a class name in ** ** for heading
  • add - and a space before each URL to make it a bullet point
  • and add > and a space before each description
@muddassir-lateef
Copy link
Collaborator Author

muddassir-lateef commented Aug 17, 2022

Login

  • GET /login/

returns the list of all the logins

  • POST /login/add

adds the login in the collection while also creating the respective user and linking it

  • DELETE /login/:username

deletes login in the collection but does not delete the respective user linking with it

  • PATCH /login/:username

updates the parameters of a login

@Salar24
Copy link
Owner

Salar24 commented Aug 18, 2022

Student

  • GET /Student/

return all of the students in the database

  • POST /Student/add

Add a student to the databse

  • GET /Student/:rollNumber

Get student with specific rollNumber

  • PATCH /Student/:rollNumber

Update credentials of student rollNumber passed in URl

@ShayanZuberi
Copy link
Collaborator

ShayanZuberi commented Aug 18, 2022

Calendar

  • GET calendar/

returns the list of calendars for each year

  • GET calendar/:year

returns the list of calendars for a specific year

  • POST calendar/addCalendar

creates a new calendar for the year

  • PATCH calendar/:year/addEvent

adds the event to the specified calendar
will have an event object in body

@ShayanZuberi
Copy link
Collaborator

ShayanZuberi commented Aug 18, 2022

Exam

  • GET exam/

returns the list of all exams

  • GET exam/:examID

returns the exam object with requested id

  • POST exam/addExam

creates a new exam
exam is passed in request body

  • PATCH exam/:examID/editExam

updates the exam record by the requested id
en exam object will be sent in body to completely update

@ShayanZuberi
Copy link
Collaborator

ShayanZuberi commented Aug 18, 2022

Marks

  • GET marks/:studentID

returns the list of all marks for the requested Student

  • GET marks/:examID

returns the list of all marks for the requested Exam

  • POST marks/addMarks

creates new marks object and saves it

  • PATCH marks/:marksID

update marks object with the specified ID

@ShayanZuberi
Copy link
Collaborator

ShayanZuberi commented Aug 18, 2022

Lecture

  • GET /lecture

returns the list of all lectures

  • POST /lecture/addNew

creates a new lecture
lecture object is passed in request body

@Salar24
Copy link
Owner

Salar24 commented Aug 18, 2022

Class

  • GET /Class/

return all of the classes in the database

  • POST /Class/addNew

Add a class to the database
Attributes of the class will be passed in the request body in Json format

@Salar24
Copy link
Owner

Salar24 commented Aug 18, 2022

Section

  • GET /Section/

return all of the sections in the database

  • POST /Section/addNew

Add a section to the database
Attributes will be passed in the request body in Json format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants