ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This method allows to find all persons, which were merged with this person. Also this endpoint shows all the persons who enter the whole chain of merges to this person.

For example, Person 3 was merged with Person 2(master). Then Person 2 was merged with Person 1(master). So then get Person 1 by id, response shows information about Person 2 and Person 3

Specification

Apiary

Validate request

Validateperson_id in request:

  • search person by person.id in MPI

    • in case error return 200 with empty array

Authorize

  • Verify the validity of access token

  • Check user scope person:read in order to perform this action

Search merged persons

Search persons in mpi.merged_pairs, where master_person_id = $.person_id. Then take all merge_person_id and search pairs by this ids as master_person_id.

Search until all persons are found from the merge chain.


  • No labels