Generate summary for an article

POST /summary/generate

Generates a summary for the article specified by its unique identifier (_id).

Query parameters

  • _id string Required

    The ID of the article to summarize (MongoDB _id field)

Responses

  • 200 application/json

    Successfully generated summary

    Hide response attributes Show response attributes object
    • summary string

      The generated summary of the article

    • _id string

      The unique identifier of the article

  • 400 text/plain

    Missing _id query parameter

  • 500 text/plain

    Internal server error

POST /summary/generate
curl \
 --request POST 'https://articles.gtrnews.eu/api/summary/generate?_id=string'
Response examples (200)
{
  "summary": "string",
  "_id": "string"
}