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
Develop an API endpoint to retrieve all testimonials associated with a specific user.
api/v1/testimonials/user/{user_id}
Delivers an API that retrieves all testimonials linked to a specific user.
Data Validation: The API should validate the request to ensure that the user_id is present and valid.
user_id
Successful retrieval of testimonials associated with the provided user_id.
HTTP [GET] /api/v1/testimonials/user/{user_id}
/api/v1/testimonials/user/{user_id}
GET /api/v1/testimonials/user/{user_id}
{ "Content-Type": "application/json", "Authorization": "Bearer <token>" }
{ "status": "success", "status_code": 200, "message": "User testimonials retrieved successfully", "data": [ { "id": "string", "user_id": "string", "content": "string", "created_at": "string", "updated_at": "string" } ] }
{ "status": "error", "status_code": 400, "message": "Invalid request parameters", "error": "string" }
{ "status": "error", "status_code": 404, "message": "User not found or no testimonials available", "error": "string" }
{ "status": "error", "status_code": 500, "message": "Internal server error", "error": "string" }
The text was updated successfully, but these errors were encountered:
slack ID: @kibe
Sorry, something went wrong.
Laban254
No branches or pull requests
Description
Develop an API endpoint to retrieve all testimonials associated with a specific user.
Acceptance Criteria
api/v1/testimonials/user/{user_id}
.Purpose
Delivers an API that retrieves all testimonials linked to a specific user.
Requirements
Data Validation:
The API should validate the request to ensure that the
user_id
is present and valid.Expected Outcome
Successful retrieval of testimonials associated with the provided
user_id
.Endpoint:
HTTP [GET]
/api/v1/testimonials/user/{user_id}
API Request Example:
GET /api/v1/testimonials/user/{user_id}
API Successful Response
API Error Response
Bad Request
Not Found
Server Error
Tasks
user_id
parameter.Testing
user_id
.The text was updated successfully, but these errors were encountered: