Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle CURIEs properly #9

Open
bantic opened this issue Jan 28, 2015 · 2 comments
Open

handle CURIEs properly #9

bantic opened this issue Jan 28, 2015 · 2 comments

Comments

@bantic
Copy link
Member

bantic commented Jan 28, 2015

Types prefaced with a curie should be handled. Presumably, since CURIEs are for documentation purposes, all that needs to happen here is to strip the curies, so property names with a colon can be split and discard the first part.

I.e., if a property name is "acme:widgets", we transform it to, simply "widgets".

@rwjblue
Copy link

rwjblue commented Jul 29, 2015

Took me a few minutes to figure out what a CURIE is, figured I'd share some info...

Custom link relation types (Extension Relation Types in [RFC5988])
SHOULD be URIs that when dereferenced in a web browser provide
relevant documentation, in the form of an HTML page, about the
meaning and/or behaviour of the target Resource. This will improve
the discoverability of the API.

The CURIE Syntax [W3C.NOTE-curie-20101216] MAY be used for brevity
for these URIs. CURIEs are established within a HAL document via a
set of Link Objects with the relation type "curies" on the root
Resource Object. These links contain a URI Template with the token
'rel', and are named via the "name" property.

@bantic
Copy link
Member Author

bantic commented Jul 29, 2015

👍 thanks! There's a rewrite of the hal adapter to support ember data 1.13+ in this branch, perhaps we can fold in proper curie support there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants