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

REST API #3

Open
schokotets opened this issue Oct 5, 2020 · 1 comment
Open

REST API #3

schokotets opened this issue Oct 5, 2020 · 1 comment

Comments

@schokotets
Copy link
Owner

schokotets commented Oct 5, 2020

implement a REST API to be used by the frontend providing the following actions:

unverified quotes: submit/update/confirm/delete/get similar
(verified) quotes: delete/update?/unconfirm?/get similar
teachers: create/update/delete

?(these may not need to be http functions)?: various ways to retrieve data:

  • get all verified quotes (paging by date/score i.e. top results?)
  • get all unverified quotes (paging by date?)
  • get all teachers

http api actions further down:

  • upvote quote
  • show all quotes by a certain teacher
  • show amount of quotes by teacher
  • show net teacher ranking
@schokotets
Copy link
Owner Author

only submitting unverfied quotes and getting teachers/quotes shall be publicly accessible
... how to handle authorization?

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

No branches or pull requests

1 participant