Closed thenoblet closed 2 weeks ago
Please update this to follow the convention
{ "title": "More Than Just A BoilerPlate", "introduction": "Welcome to Hng Boilerplate, where passion meets innovation.", "custom_sections": { "stats": { "years_in_business": 10, "customers": 75000, "monthly_blog_readers": 100000, "social_followers": 1200000 }, "services": { "title": "Trained to Give You The Best", "description": "Since our founding, Hng Boilerplate has been dedicated to constantly evolving to stay ahead of the curve." } }, "status_code": 200 }****
Retiurn Response should be
data: status_code message
Update this, show the error response when an unauthenticated user or authenticated but unauthorized (non administrator) users use this endpoint. Also update the response using the convention stated above by @highb33kay
it would be better to use a generic content endpoint - e.g /content/about, where about is a category. I think all these types of pages should be consolidated into a single such endpoint group
@highb33kay, @Popsicool and @markessien, all suggestions and changes has been made, Mentors.
Please review again. Hopefully, it is exactly what you expect.
Description
Implement an endpoint to retrieve the content of the About page, allowing administrators to view the current information efficiently.
Purpose
Acceptance Criteria
Retrieve About Page Content
Requirements
Retrieve About Page Content
Expected Outcome
Checklist
Retrieve About Page Content
Testing
Documentation:
Endpoint
Retrieve About Page Content
Description: Retrieve the current content of the About page.
Endpoint:
GET /api/v1/content/about
Authentication: Required
Authorization: Administrators only
Response (Success):
Response (Error: Server Issue):
Response (Error: Unauthenticated):
Response (Error: Authenticated but Unauthorised):
Additional Notes: