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

Adds reporting to posts #51

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Adds reporting to posts #51

wants to merge 7 commits into from

Conversation

mattrltrent
Copy link
Member

Routes added

  • PUT /posts/{post_id}/report: reports a post.
  • * GET /reports/posts/: fetches a list of posts that have been reported based on certain report-based criteria.
  • * GET /reports/{post_id}/: lists the specific reports that were received for a post.
  • * PUT /posts/{post_id}/remove: removes/un-removes a post from circulation.

* These routes still need to be locked to admins only, or equivalent.

Other updates

  • Documentation added to openapi.yaml for all new and updated routes.
  • Updated GET /posts/{post_id}/ to return new error message if a post it tries to fetch is removed from circulation.
  • Updated GET /posts/ to not return posts that have been removed from circulation.

Closes #50.

@mattrltrent mattrltrent added the feature Something to be added or improved upon. label Apr 28, 2023
@mattrltrent mattrltrent requested a review from minitech April 28, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something to be added or improved upon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reporting posts
1 participant