Giter VIP home page Giter VIP logo

gedcomx-rs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gedcomx-rs's Issues

Authentication and authorization links

9. Authentication and Authorization

A server MAY require authorization to access certain application states. Authentication and authorization are outside the scope of this specification. OAuth 2 as specified by RFC 6749 is RECOMMENDED as an authentication mechanism.

However three states have OAuth2 links listed as valid transitions. It seems that any links to authentication and authorization resources ought to be implementation-specific extensions as opposed to being in the gedcomx-rs spec itself.

Can application states be extended?

Which data types support links?

The specification for Link says:

Instances of Link can be reasonably expected as extension elements to any GEDCOM X data type.

I believe that statement should be more explicit.

In gedcomx-java (the canonical implementation of GEDCOM X), anything that supports links inherits from HypermediaEnabledData. There are a number of data types that don't inherit from HypermediaEnabledData and thus don't support links. Why?

The best reason I could see for not supporting links is not supporting extension elements but Address supports extension elements while not supporting links. Was that intentional?

The spec should either say "All data types support links," list data types that do support links, or list data types that don't support it and imply that all others do.

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

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>

Why is JSON support required while XML is optional?

Section 4 of the GEDCOM X RS spec defines the application states, and for each one there is a statement discussing the media types:

Applications that implement the Agent state MUST support the application/x-gedcomx-v1+json media type as defined by the GEDCOM X JSON specification. Support for the application/x-gedcomx-v1+xml media type as defined by GEDCOM X XML is RECOMMENDED.

Why is support for JSON required while XML is only recommended? I'm a fan of JSON myself but this decision still sounds arbitrary to me. Is the justification for this decision documented anywhere?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.