Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduksjon

Eksempelet viser en respons på metoden

Forretningsregler

N/A

Eksempler

JSON Request parameter

Code Block
guardianPersonId=323423/api/v1/person/personrelation/{personid}

JSON Response

Responsen lister kun id’er. Kommaseparert. Med first in, first out.

...

Code Block
languagejson
[
    {
        "parentPersonId": 3114874,
        "childPersonId": 3413412,
        "childBuypassId": null,
        "childBirthDate": "2008-10-17T00:00:00",
        "childFirstName": "Fornavn",
        "childLastName": "Etternavn",
        "childGender": 1,
        "countryId": 1500152,
        "countryName": "Norge",
        "countryShortName": "NOR"
    },
    {
        "parentPersonId": 3114874,
        "childPersonId": 6356496,
        "childBuypassId": 144347438,
        "childBirthDate": "2012-11-19T00:00:00",
        "childFirstName": "Fornavn",
        "childLastName": "Etternavn",
        "childGender": 2,
        "countryId": 1500152,
        "countryName": "Norge",
        "countryShortName": "NOR"
    },
    {
        "parentPersonId": 3114874,
        "childPersonId": 845441,
        "childBuypassId": 143654279,
        "childBirthDate": "2015-11-13T00:00:00",
        "childFirstName": "Fornavn Mellomnavn",
        "childLastName": "Etternavn",
        "childGender": 1,
        "countryId": 1500152,
        "countryName": "Norge",
        "countryShortName": "NOR"
    }
]