testimonials
Create a new testimonial
Changed onCreates a new testimonial.
post/testimonials
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Charles Ugberaese",
"content": "The service is fantastic, great experience."
}Response
Testimonial created successfully
Example response
{
"status": "success",
"message": "Testimonial created successfully",
"data": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"user_id": "0b89cd08-57fc-40b0-aa17-ed6d95f43cfe",
"name": "Charles Ugberaese",
"content": "The service is fantastic, great experience.",
"created_at": "2024-07-18T00:00:00Z"
}
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking