You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an API endpoint to allow super admin handle editing existing blog posts. This endpoint will validate the input data and update the blog post securely in the database
Acceptance Criteria
The endpoint allows only a super admin to edit an existing blog post.
The endpoint should be accessible at /api/v1/blog/edit/{blog_id}
The endpoint should accept HTTP PUT requests.
The API should validate the request payload to ensure the title and other necessary fields is provided.
Upon successful validation of the input data, the blog post should be updated in the database securely.
Return a 200 OK status code on successful request.
Description
Create an API endpoint to allow super admin handle editing existing blog posts. This endpoint will validate the input data and update the blog post securely in the database
Acceptance Criteria
/api/v1/blog/edit/{blog_id}
Request body
application/json
Success payload
Error payload
Purpose
Provide the necessary backend services to allow super admin to edit and update their previously published blog posts.
Requirements
Expected Outcome
The API endpoint allows super admin to edit their blog posts via the provided data, ensuring all updates are securely stored and validated.
Test
The text was updated successfully, but these errors were encountered: