Find an article by ID

GET /articles/find

Returns a single article by its unique identifier (_id).

Query parameters

  • _id string Required

    The ID of the article to search for (MongoDB _id field)

Responses

  • 200 application/json

    Successfully found the article

    Hide response attributes Show response attributes object
    • _id string

      Unique identifier

    • title string

      Title of the article

    • content string

      Content of the article (base64 encoded)

    • author string

      Name or identifier of the author

    • createdAt string(date-time)

      Creation date

  • 400 text/plain

    Missing _id query parameter

  • 404 text/plain

    Article not found

  • 500 text/plain

    Internal server error

GET /articles/find
curl \
 --request GET 'https://articles.gtrnews.eu/api/articles/find?_id=string'
Response examples (200)
{
  "_id": "string",
  "title": "string",
  "content": "string",
  "author": "string",
  "createdAt": "2025-05-04T09:42:00Z"
}