Closed elizase405 closed 2 weeks ago
As requested by Mark here, this article has been separated to this functionality.
inconsistent naming
As requested, Naming has been reviewed to a consistent format of 'topic'
Please take note and update your route
https://github.com/hngprojects/hng_boilerplate_nestjs/issues/111#issuecomment-2235907567
Route has been updated as requested
Requesting 1st mentor approval from @markessien
Description
Backend logic to handle posting of a topic (Admin only)
Acceptance Criteria
Purpose
Allows super admin to create a new topic
Requirements
Expected Outcome
EndPoints
POST /api/v1/help-center/topics/
Authentication Required: Yes (JWT Token)
Authorization Required: Yes (Admin Role)
Headers:
Content-Type: application/json
Authorization: Bearer <JWT_TOKEN>
Request:
Response:
422 Bad Request: Invalid input data.
Database Schema
Table name: articles_table
_articleid:
title:
content:
createdAt:
updatedAt:
constraints: datetime
Database Diagram
Database image
Testing
/api/v1/topics
matches the documentation.