Search philosophers works

GET /works/philosophers

Search works by philosopher's name.

Query parameters

  • limit integer

    limit of elements to return

    Minimum value is 0.

  • offset integer(int32)

    number of element to skip

    Minimum value is 1.

  • name string Required

    Philosopher's name.

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/philosophers
curl \
 -X GET https://philosapi.vercel.app/api/works/philosophers?name=Arthur
Response examples (200)
[
  {
    "id": "string",
    "title": "string",
    "philosopher_id": 42,
    "wiki": "string",
    "philosopher": "string"
  }
]