Get works by ID

GET /works/{workID}

Get a work by ID.

Path parameters

  • workID integer(int32) Required

    Work's ID.

Responses

  • 200 application/json

    Response 200

    Hide response attributes Show response attributes object
    • id string Required

      The ID of the work.

    • title string Required

      Title's work.

    • philosopher_id integer Required

      Philosopher's ID.

    • wiki string Required

      Link to the work's wikipedia page.

    • philosopher string Required

      Name of the philosopher to whom the quotation is attributed.

  • bad input parameter

GET /works/{workID}
curl \
 -X GET https://philosapi.vercel.app/api/works/12
Response examples (200)
[
  {
    "id": "string",
    "title": "string",
    "philosopher_id": 42,
    "wiki": "string",
    "philosopher": "string"
  }
]