Add fields for posts (including tags) + openapi docs (2nd time around). #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 intoheader_text
andbody_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
tags: Vec<&'static str>
to theDetail
type.Post
.Documentation
GET /posts/
andPOST /posts/
updated to match newly updatedPost
fields.