Closed Daniel-Ojo-Williams closed 2 weeks ago
As requested by Mark here, this article has been separated to this functionality.
unclear what articles or topics are
Updated for consistent naming (topic) and hint on what topics are as about Help Center.
I've updated the description to include an explanation of what topics are in the context of the Help Center and what the endpoint does to manage them.
A "topic" is not clearly part of "help". Fix your route
Updated the route to /api/v1/help-center/topics/:id
to provide clearer context and reflect how topics are nested under the help center page, explicitly showing that topics are part of the help center.
Update Message Responses
"message": String,
any dependencies on other tasks or systems.
Validations?
Message responses have been updated, and necessary dependencies and validations have been included as requested.
Description
The help center contains topics that provide users with advice and assistance from the support team. This endpoint permanently deletes outdated or invalid topics (help guides) from the database.
Acceptance Criteria
Purpose
To delete a topic previously created
Requirements
Authorization
.Endpoints
[DELETE]
/api/v1/help-center/topics/:id
Deletes a topic
help_center_topics
table.Request
[DELETE] /api/v1/help-center/topics/:id
Successful Response
Status Code:
200
Description: Deleted successfully
Error Response
Status Code:
403
Description: Forbidden, Only SuperAdmins can access this endpoint.
Status Code:
404
Description: No topic ID matches the ID param provided.
Status Code:
500
Description: Internal Server error
Validations
Dependencies
Database Schema
Table name: help_center_topics
id:
title:
content:
author:
createdAt:
updatedAt:
Database diagram
Testing