person-controller

Get companion

Get companion from the repository.

get/api/persons/{personId}/companions/{companionId}

Request

Path parameters

companionIdstring required

companionId

personIdstring required

personId

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 operation across all 1 revision of this API.