SparkEdUAB / sparked-next

The next version of sparked based on nextjs
https://sparkednext.app/
MIT License
2 stars 5 forks source link

Be: feat category management #232

Closed brianmuks closed 3 months ago

brianmuks commented 3 months ago

PR Summary

Feature: Content Category Management

This pull request introduces several updates aimed at improving content management:

This PR significantly enhances the content management capabilities by supporting the creation, editing, and deletion of content categories.

API Documentation: Content Categories Endpoints

1. Delete Content Categories by ID

Endpoint: POST /api/content-categories/deleteContentCategoriesById

Description: This endpoint deletes one or more content categories based on their IDs.

Request Body:

{
   "contentCategoryIds": [
      "66b4b884302cfda63df74675"
   ]
}

Parameters:

Response:

2. Edit Content Category

Endpoint: POST /api/content-categories/editContentCategory

Description: This endpoint allows you to edit an existing content category.

Request Body:

{
    "name": "Text Books edited",
    "description": "Text Books",
    "contentCategoryId": "66b4b884302cfda63df74675"
}

Parameters:

Response:

3. Create Content Category

Endpoint: POST /api/content-categories/createContentCategory

Description: This endpoint allows you to create a new content category.

Request Body:

{
    "name": "Text Books 2",
    "description": "Text Books"
}

Parameters:

Response:

render[bot] commented 3 months ago

Your Render PR Server URL is https://sparked-app-pr-232.onrender.com.

Follow its progress at https://dashboard.render.com/web/srv-cqqc5gogph6c738jtg80.