FamilySearch / gedcomx-rs

RESTful Interface Definitions for GEDCOM X data
https://github.com/FamilySearch/gedcomx-rs/
Apache License 2.0
12 stars 9 forks source link

search(es), match(es) resources: eliminate local element wrappers for usability #2

Closed stoicflame closed 8 years ago

stoicflame commented 12 years ago

The proposal is to get rid of the parent and spouse wrappers for a person and use links to identify the primary person and how the other persons in the atom:entry relate to each other. E.g.:

<feed>
  ...
  <entry>
    <link rel="self" href="/xt/persons/1"/>
    <link rel="gx:father" href="/xt/persons/2"/>
    <link rel="gx:mother" href="/xt/persons/3"/>
    <gxc:person>
      <link rel="self" href="/xt/persons/1"/>
      ...
    </gxc:person>
    <gxc:person>
      <link rel="self" href="/xt/persons/2"/>
      ...
    </gxc:person>
    <gxc:person>
      <link rel="self" href="/xt/persons/3"/>
      ...
    </gxc:person>
  </entry>
</feed>