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 update an existing testimonial associated with a specific user.
api/v1/testimonials/{testimonial_id}
Delivers an API that updates an existing testimonial linked to a specific user.
Data Validation: The API should validate the request to ensure that the testimonial_id is present and valid.
testimonial_id
Successful update of a testimonial associated with the provided testimonial_id.
HTTP [PATCH] /api/v1/testimonials/{testimonial_id}
/api/v1/testimonials/{testimonial_id}
PATCH /api/v1/testimonials/{testimonial_id}
{ "Content-Type": "application/json", "Authorization": "Bearer <token>", "content": "Updated testimonial text." }
{ "status": "success", "status_code": 200, "message": "Testimonial updated successfully", "data": { "id": "string", "user_id": "string", "content": "Updated testimonial text.", "created_at": "string", "updated_at": "string" } }
{ "status": "error", "status_code": 400, "message": "Invalid request parameters", "error": "string" }
{ "status": "error", "status_code": 401, "message": "Unauthorized access", "error": "string" }
{ "status": "error", "status_code": 404, "message": "Testimonial not found", "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
Feature: Update User Testimonial API
Description
Develop an API endpoint to update an existing testimonial associated with a specific user.
Acceptance Criteria
api/v1/testimonials/{testimonial_id}
.Purpose
Delivers an API that updates an existing testimonial linked to a specific user.
Requirements
Data Validation:
The API should validate the request to ensure that the
testimonial_id
is present and valid.Expected Outcome
Successful update of a testimonial associated with the provided
testimonial_id
.Endpoint:
HTTP [PATCH]
/api/v1/testimonials/{testimonial_id}
API Request Example:
PATCH /api/v1/testimonials/{testimonial_id}
API Successful Response
API Error Response
Bad Request
Unauthorized
Not Found
Server Error
Tasks
testimonial_id
parameter.Testing
testimonial_id
.The text was updated successfully, but these errors were encountered: