-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
There will be certain endpoints for CRUD operations on news as mentioned below.
- /post - so that news can be posted, only accessible to publisher of the news.
- /getAll - to get latest news in a sorted order of published parameter (latest first) - also limit the number of news as whenever the app will grow we only need to fetch some of the latest news and not all. (Only title and abstract are to be fetched from the database. refer Creating a news schema in mongoose #27)
- /get/:id - to get all content of a specific news.
- /update - so that news can be updated. Only available to publisher of the news.
- /publish/:id - so that a particular news can be published
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels