We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implement an endpoint to fetch all blog posts authored by a specific user using their author_id.
author_id
/api/v1/blogs/author/{author_id}
This feature allows users to easily fetch all blog posts from a particular author, improving content accessibility.
Users should be able to retrieve all blog posts from a specific author efficiently.
curl -X GET "{rootdomain}/api/v1/blogs/author/123" \ -H "Content-Type: application/json"
{ "status_code": 200, "total_results": 2, "blogs": [ { "id": 1, "title": "Understanding AI", "author_id": 123, "published_at": "2024-02-10T14:00:00Z", "tags": ["AI", "Tech"], "excerpt": "A deep dive into artificial intelligence..." }, { "id": 2, "title": "Machine Learning Basics", "author_id": 123, "published_at": "2024-01-25T10:15:00Z", "tags": ["ML", "AI"], "excerpt": "Breaking down the core principles of machine learning..." } ] }
No Blog Posts Found
{ "status_code": 200, "total_results": 0, "blogs": [] }
Server Error
{ "status_code": 500, "message": "An unexpected error occurred." }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Implement an endpoint to fetch all blog posts authored by a specific user using their
author_id
.Acceptance Criteria
/api/v1/blogs/author/{author_id}
.author_id
.Purpose
This feature allows users to easily fetch all blog posts from a particular author, improving content accessibility.
Requirements
author_id
.Expected Outcome
Users should be able to retrieve all blog posts from a specific author efficiently.
Tasks
/api/v1/blogs/author/{author_id}
).Example Request
Example Responses
No Blog Posts Found
Server Error
Testing
author_id
queries.The text was updated successfully, but these errors were encountered: