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

Make single objects APIs #66

Open
9 of 20 tasks
e-caste opened this issue Jan 14, 2022 · 0 comments
Open
9 of 20 tasks

Make single objects APIs #66

e-caste opened this issue Jan 14, 2022 · 0 comments
Assignees
Labels
Backend Backend related

Comments

@e-caste
Copy link
Member

e-caste commented Jan 14, 2022

  • GET /v1/course {courseId: int}
  • corresponding test
  • GET /v1/question {questionId: int}
  • corresponding test
  • GET /v1/user {userId: int} -- returns {name: "string", surname: "string", nickname: "string", profilePicture: base64}
  • corresponding test
  • GET /v1/userSettings {userId: int}
  • corresponding test
  • GET /v1/answer {answerId: int}
  • corresponding test
  • POST /v1/answer {userId: int, public: bool (true if user clicks post else false to save), contents: formatted text}
  • corresponding test
  • POST /v1/bookmarkQuestion {userId: int, questionId: int}
  • corresponding test
  • POST /v1/reply {userId: int, contents: formatted text}
  • corresponding test
  • POST /v1/upvote {userId: int, answerId: int} -- increases reputation of author of answer
  • corresponding test
  • POST /v1/downvote {userId: int, answerId: int}
  • corresponding test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Backend related
Projects
None yet
Development

No branches or pull requests

7 participants