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

Add fields for posts (including tags) + openapi docs (2nd time around). #30

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

Conversation

mattrltrent
Copy link
Member

Fields added to Post type

  • reply_context (optional): Specifies if the post is "replying" to another post. Think of it as a Quoted Tweet (if you know Twitter).
  • school_id: The unique ID (ex: UVIC) of the school the post is associated with.
  • text field split up into header_text and body_text.
  • genre: The genre of the post (ex: General, Relationships).
  • year_of_study (optional): The year of study of the poster (ex: One, PhD, Graduate).
  • faculty (optional): The faculty of the poster (ex: Engineering, Arts).
  • associated_with_user: Determines if the user wants this post to be easily findable from their private profile, or if they want it completely disassociated with them.

Auto-applying tags

  • Adds a new field tags: Vec<&'static str> to the Detail type.
  • This field is then auto-populated with tags based on certain attributes of a Post.

Documentation

  • Docs for GET /posts/ and POST /posts/ updated to match newly updated Post fields.

@mattrltrent mattrltrent added the feature Something to be added or improved upon. label Feb 15, 2023
@mattrltrent mattrltrent requested a review from minitech February 15, 2023 10:40
@mattrltrent mattrltrent self-assigned this Feb 15, 2023
@mattrltrent
Copy link
Member Author

Closes #24 and closes (technically frontend so no link) #32.

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.

1 participant