Documentation Index
Fetch the complete documentation index at: https://mintlify.com/miikorz/DailyNews/llms.txt
Use this file to discover all available pages before exploring further.
POST /feed creates a new news feed item and persists it to MongoDB. This is the manual creation path — use it to add custom feed entries independently of the automatic scraping pipeline. The controller performs soft validation: if either title or link is absent from the request body, the server immediately responds with 400 BAD_REQUEST without touching the database.
Endpoint
Request Body
Send a JSON body withContent-Type: application/json.
Headline or title of the news article. Must be a non-empty string.
Canonical URL of the original news article. Must be a non-empty string.
Short summary or excerpt of the article. Defaults to an empty string if omitted.
Byline of the article. Defaults to an empty string if omitted.
URL of the article’s cover or thumbnail image. Defaults to an empty string if omitted; may be explicitly set to
null.Source identifier or publication name for the feed item. Defaults to an empty string if omitted.
Validation
The controller checks that bothtitle and link are present and truthy before calling the service layer. If either field is missing or empty, a 400 BAD_REQUEST response is returned immediately — no database write occurs.
Response
The newly created Feed object as persisted in MongoDB, including the server-assigned
_id and createdAt timestamp.Always
null on a successful 200 response.Example Request
Example Response
Error Responses
400 — Missingtitle or link:
Status Codes
| Code | Meaning |
|---|---|
200 | Feed item created successfully |
400 | title or link is missing from the request body |
500 | An unexpected server error occurred |