Closed Pythonian closed 2 weeks ago
Hi @buka4rill @markessien
There is an issue here. I created this ticket which got first approval, and while still trying to raise a complete team of 6, someone who successfully did has now gone to get this assigned to himself.
How do i proceed now?
S/N | Slack Name | Github Username | |
---|---|---|---|
1 | Sapagrammer | Pythonian | Python |
2 | Salem | thectogeneral | Nestjs |
3 | Anetor Oselumese | bahdman | .NET |
4 | Synth | thegirlSynth | Go |
@Pythonian include their github usernames
@Pythonian include their github usernames
@buka4rill I have updated it, but the third guy hasn't responded since I asked him for his. So whenever he responds, i will update it with his github username.
https://github.com/hngprojects/hng_boilerplate_nestjs/issues/94#issuecomment-2233630997
Description
Develop an endpoint to handle requests to fetch and return all blog post data. If the data is fetched successfully, it will be returned to the client with a
200 OK
status. If an error occurs, an appropriate error status will be returned.Acceptance Criteria
page
andpage_size
.200 OK
status code and the correct response body when data is fetched successfully.Requirements
page
andpage_size
.Expected Outcome
Endpoints
[GET] /api/v1/blogs
Description: Fetches a paginated list of blog post summaries.
Query Parameters:
page
: The page number to retrieve. Default is1
.page_size
: The number of blog posts per page. Default is10
.Success Response:
200 OK
Error Response:
500 Internal Server Error
Invalid Method Response:
405 Method Not Allowed
Bad Request Response:
400 Bad Request
Testing
Test Scenarios
Successful Retrieval of Paginated Blog Posts
200 OK
.No Blog Posts Present
Internal Server Error
500 Internal Server Error
status code.Invalid Page or Page Size Parameters
page
orpage_size
parameters (e.g., negative numbers, non-integer values).400 Bad Request
status code and an appropriate error message.Invalid Method
405 Method Not Allowed
status code.Soft-Deleted Blog Post Access Control