person-controller

List companions

List companions from the repository.

get/api/persons/{personId}/companions

Path parameters

personIdstring required

personId

Query parameters

listTempboolean

listTemp

Response

OK

firstNamestring

First name

hrefstring

href

idstring

ID

lastNamestring

lastName

personIdstring

personId

Example response

[
  {
    "firstName": "John",
    "href": "http://localhost:9001/api/persons/56JBQEDRINAM4VJ2VTWPEC7XCM/companion/56JBQEDRINAM4VJ2VTWPEC7XCN",
    "id": "56JBQEDRINAM4VJ2VTWPEC7XCM",
    "lastName": "Doe",
    "personId": "56JBQEDRINAM4VJ2VTWPEC7XCM"
  }
]

Changes

No recorded changes to this endpoint across all 1 revision of this API.