Get philosopher

GET /philosophers/{philosopherID}

Get a philosopher by ID.

Path parameters

  • philosopherID integer Required

    Philosopher's ID.

Responses

  • 200 application/json

    Response 200

    Hide response attributes Show response attributes object
    • id integer Required

      The id of the philosopher.

    • name string Required

      The stream of thought 's name.

    • birth_place string Required

      Birth place's philosopher.

    • stream_of_thought_id integer Required

      Stream of thought's ID.

    • period_id integer Required

      Period's ID.

    • resume string Required

      Short resume about the philosopher.

    • birth_year integer Required

      Birth's year.

    • dead_year integer Required

      Dead's year.

    • wiki string Required

      Link to the Philosopher's wikipedia page.

    • img_url string Required

      Portrait's philosopher.

    • stream_of_thought_name string Required

      Philosopher's stream of thought name.

    • period_name string Required

      Philosopher's period name.

  • 400

    bad input parameter

GET /philosophers/{philosopherID}
curl \
 -X GET https://philosapi.vercel.app/api/philosophers/15
Response examples (200)
[
  {
    "id": 42,
    "name": "string",
    "birth_place": "string",
    "stream_of_thought_id": 42,
    "period_id": 42,
    "resume": "string",
    "birth_year": 42,
    "dead_year": 42,
    "wiki": "string",
    "img_url": "string",
    "stream_of_thought_name": "string",
    "period_name": "string"
  }
]