Open JoshuaOloton opened 3 months ago
This is the link to the approved ticket
@Laban254 this is a duplicated issue ticket. one of the mentor has dropped it. you can ask @zxenonx about it. Thanks
@theijhay I just confirmed and the issue has not been dropped https://github.com/hngprojects/hng_boilerplate_nestjs/issues/181 and there is no mention in the comments that it is a duplicate. The issue i checked is the one refenced by @JoshuaOloton in the comments of this issue.
Hello @JoshuaOloton , if this is a duplicate, kindly follow the mentor's request.
Hello @Laban254, this issue is not the duplicate
The https://github.com/hngprojects/hng_boilerplate_nestjs/issues/152 which was supposedly created first was identified by Mark as a duplicate of another issue, the issue was then edited multiple times only to end up duplicating my issue https://github.com/hngprojects/hng_boilerplate_nestjs/issues/181. Pls confirm under the issue's activity section It has already been settled by a mentor, @Leona is a member of my team on the issue https://hng11.slack.com/archives/C07C462K430/p1721413390208469?thread_ts=1721412668.971629&cid=C07C462K430
@JoshuaOloton Are you sure of what you are saying? I have nothing more to say. Goodluck!
Pls lets avoid unnecessary banter @theijhay, this was already settled by @NdubuisiJr who gave ownership of the ticket to my team. The proofs are there, I fail to see why you're still dragging it here now with me on this repo.
Description
Acceptance Criteria
/api/v1/products/{product-id}
is accessible via a GET request.product-id
is provided, the endpoint returns a 200 OK status.product-id
format is provided, the endpoint returns a 400 Bad Request status.product-id
that does not exist is provided, the endpoint returns a 404 Not Found status.Purpose
Requirements
Expected Outcome
Tasks
/api/v1/products/{product-id}
to fetch details of a single product.Database Schema
Endpoint URL: GET
/api/v1/products/{product-id}
Responses
Success Response
Code: 200 OK
Content:
Error Responses
Code: 400 BAD REQUEST
Content:
Code: 404 NOT FOUND
Content:
Code 422: UNPROCESSABLE CONTENT / VALIDATION ERROR
Content:
Code: 500 INTERNAL SERVER ERROR
Content:
Example Request
Fetch Single Product By ID
curl -X GET "https:/<base-url>/api/v1/products/12345