feat: add endpoint to retrieve blogs by author#1213
Open
skyspec28 wants to merge 4 commits intohngprojects:devfrom
Open
feat: add endpoint to retrieve blogs by author#1213skyspec28 wants to merge 4 commits intohngprojects:devfrom
skyspec28 wants to merge 4 commits intohngprojects:devfrom
Conversation
Signed-off-by: maulome <145766281+skyspec28@users.noreply.github.com>
joboy-dev
requested changes
Mar 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Community Feature - Blog Author Endpoint
Description
This feature introduces a new endpoint to retrieve blogs authored by a specific user. It enhances the platform by allowing users to filter blog posts by author, making it easier to find content from a particular writer.
Features
Service Implementation
BlogService
get_blogs_by_author: Retrieves all blog posts by a specific author, with pagination support.count_author_blogs: Returns the total number of blog posts written by a specific author.Motivation and Context
Currently, there is no way to filter blog posts by author within the platform. This feature addresses that gap by:
Testing
Types of Changes
✅ New Feature (non-breaking change that adds functionality)
Checklist
CONTRIBUTING.mddocument.