Get philosophers works

GET /works/philosophers/{philosopherID}

Get a list of all the works made by this philosopher.

Path parameters

Query parameters

  • limit integer(int32)

    limit of elements to return

    Minimum value is 0.

  • offset integer(int32)

    number of element to skip

    Minimum value is 1.

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