Testing Content Route API #47
Closed
manojtsx
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
POST /api/content/add/post
- Add post content to the databasePOST /api/content/add/pdf
- Add pdf content to the databasePOST /api/content/add/video
- Add video content to the databasePUT /api/content/edit/post/:id
- Edit post content to the databasePUT /api/content/edit/pdf/:id
- Edit pdf content to the databasePUT /api/content/edit/video/:id
- Edit video content to the databaseDELETE /api/content/delete/:id
- Delete content from the database and file from the serverPUT /api/content/approve/:id
- Approve contentPUT /api/content/reject/:id
- Reject cotentGET /api/content/post/:id
- Get post content by idGET /api/content/pdf/:id
- Get pdf content by idGET /api/content/video/:id
- Get video content by idGET /api/content/
- Get all contentsGET /api/content/count
- Get count of all contentsNote: While calling every API, you don't forget to check the database and server/uploads folder for tracking changes.
Beta Was this translation helpful? Give feedback.
All reactions