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

Backend enhance post listing #384

Merged
merged 4 commits into from
Dec 14, 2024
Merged

Backend enhance post listing #384

merged 4 commits into from
Dec 14, 2024

Conversation

sonerkuyar
Copy link
Member

In this PR list_posts endpoint revised and improved to return posts with different options:

  • Added sorting option on various fields
  • Added filtering mechanism according to tags
  • Added filtering mechanism according to followed users.

Endpoint documented with also examples and test cases wrote for different scenarios.
Client can get posts in paginated format with different options.
Detailed explanations also under commit descriptions.

- list_endpoint revised to order posts as "newer, older, title" which newer and olders sort according to date (default is newer) title make alphabetical sorting according to post titles.
- also with tag parameter endpoint return the post with this tag
-documentation created  with examples
Created unit tests to ensure that taggin mechanism works correctly
list_post endpoint improved to also take followed parameters to get post according to followed users
@sonerkuyar sonerkuyar added Component: Backend Issues related to server-side logic or infrastructure Component: Database Issues related to database management or queries labels Dec 14, 2024
@sonerkuyar sonerkuyar added this to the Milestone 3 - (Final) milestone Dec 14, 2024
@sonerkuyar sonerkuyar self-assigned this Dec 14, 2024
@sonerkuyar sonerkuyar mentioned this pull request Dec 14, 2024
2 tasks
@yusufaygun
Copy link
Contributor

LGTM!

@yusufaygun yusufaygun merged commit 708363f into backend Dec 14, 2024
@sonerkuyar sonerkuyar linked an issue Dec 16, 2024 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Backend Issues related to server-side logic or infrastructure Component: Database Issues related to database management or queries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend: Enhance List post items endpoint
2 participants