Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
FYI - New version of the draft
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Kelly  
View profile  
 More options Jul 1 2012, 4:21 am
From: Mike Kelly <mikekelly...@gmail.com>
Date: Sun, 1 Jul 2012 09:21:22 +0100
Local: Sun, Jul 1 2012 4:21 am
Subject: FYI - New version of the draft
http://tools.ietf.org/html/draft-kelly-json-hal-03

Few changes to terminology, and added name and type properties to link object.

_links is now OPTIONAL

_links.self is now in recommendations as a SHOULD

Cheers,
M


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Derricutt  
View profile  
 More options Jul 1 2012, 4:36 am
From: Mark Derricutt <m...@talios.com>
Date: Sun, 01 Jul 2012 20:36:27 +1200
Local: Sun, Jul 1 2012 4:36 am
Subject: Re: FYI - New version of the draft

On 1/07/12 8:21 PM, Mike Kelly wrote:

In the definition of a resource we have "All other properties MUST be
valid JSON, and represent the current state of the resource.".

This somewhat implies a FULL representation, the original spec says "
Content embedded within a *Resource* element MAY be a full, partial,
summary, or incorrect representation of the content available at the
target URI". Is this a deliberate change or just an oversight?

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Kelly  
View profile  
 More options Jul 1 2012, 4:52 am
From: Mike Kelly <mikekelly...@gmail.com>
Date: Sun, 1 Jul 2012 09:52:29 +0100
Local: Sun, Jul 1 2012 4:52 am
Subject: Re: FYI - New version of the draft
I guess an oversight, I will have a look at this thanks Mark

--
Mike

http://twitter.com/mikekelly85
http://github.com/mikekelly
http://linkedin.com/in/mikekelly123


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Van De Vyver  
View profile  
 More options Jul 2 2012, 9:18 pm
From: Mark Van De Vyver <m...@taqtiqa.com>
Date: Tue, 3 Jul 2012 11:18:42 +1000
Local: Mon, Jul 2 2012 9:18 pm
Subject: Re: FYI - New version of the draft

On Sun, Jul 1, 2012 at 6:21 PM, Mike Kelly <mikekelly...@gmail.com> wrote:
> http://tools.ietf.org/html/draft-kelly-json-hal-03

> Few changes to terminology, and added name and type properties to link object.

> _links is now OPTIONAL

> _links.self is now in recommendations as a SHOULD

Thanks Mike.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
locks  
View profile  
 More options Jul 3 2012, 7:35 pm
From: locks <rok...@gmail.com>
Date: Tue, 3 Jul 2012 16:35:39 -0700 (PDT)
Local: Tues, Jul 3 2012 7:35 pm
Subject: Re: FYI - New version of the draft

Hi Mike,

A couple of questions.

What is the reasoning for making _links/_link.self optional?
That means that a resource may not have a self link, but if it has it's
still under _links right?

I'm working on (yet another) ruby implementation, so I have some tests to
rewrite :P


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Derricutt  
View profile  
 More options Jul 3 2012, 7:58 pm
From: Mark Derricutt <m...@talios.com>
Date: Wed, 04 Jul 2012 11:58:34 +1200
Local: Tues, Jul 3 2012 7:58 pm
Subject: Re: FYI - New version of the draft
On 4/07/12 11:35 AM, locks wrote:

> I'm working on (yet another) ruby implementation, so I have some tests
> to rewrite :P

You and me both ;) I need to get on with updating HalBuilder to conform
to the spec changes.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Kelly  
View profile  
 More options Jul 4 2012, 2:29 am
From: Mike Kelly <mikekelly...@gmail.com>
Date: Wed, 4 Jul 2012 07:29:03 +0100
Local: Wed, Jul 4 2012 2:29 am
Subject: Re: FYI - New version of the draft

On Wed, Jul 4, 2012 at 12:35 AM, locks <rok...@gmail.com> wrote:
> Hi Mike,

> A couple of questions.

> What is the reasoning for making _links/_link.self optional?

One reason would be to make hal use-able as a media type for requests
that create resources. Requring a self link would require a client to
specify a yet-unknown URI.

> That means that a resource may not have a self link, but if it has it's
> still under _links right?

Indeed

> I'm working on (yet another) ruby implementation, so I have some tests to
> rewrite :P

Which tests are those, is this on github? Be great to look at those
changes to get an idea of the impact its had - same goes for anyone
else, please share your pains/thoughts. If this change is too
distruptive, I can always revert it - but I need people's feedback.

Cheers,
M


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
locks  
View profile  
 More options Jul 4 2012, 6:33 am
From: locks <rok...@gmail.com>
Date: Wed, 4 Jul 2012 03:33:51 -0700 (PDT)
Local: Wed, Jul 4 2012 6:33 am
Subject: Re: FYI - New version of the draft

On Wednesday, July 4, 2012 7:29:03 AM UTC+1, Mike Kelly wrote:

> On Wed, Jul 4, 2012 at 12:35 AM, locks <rok...@gmail.com> wrote:
> > Hi Mike,

> > A couple of questions.

> > What is the reasoning for making _links/_link.self optional?

> One reason would be to make hal use-able as a media type for requests
> that create resources. Requring a self link would require a client to
> specify a yet-unknown URI.

Right, that makes sense.

Mind you this is very much a work in progress, but you can find the code
here: https://github.com/locks/halibut/tree/structuring .

In my case I was requiring a URI when creating a new resource, and assuming
that _links would always be present when parsing a HAL document.
Given that and the early state of the library it's easy to update it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darrel Miller  
View profile  
 More options Jul 4 2012, 9:33 am
From: Darrel Miller <darrel.mil...@gmail.com>
Date: Wed, 4 Jul 2012 09:33:41 -0400
Local: Wed, Jul 4 2012 9:33 am
Subject: Re: FYI - New version of the draft
Does this mean that in the XML variant that the href attribute should
now be optional also?  Therefore the following is valid:

<resource>
     <resource rel='urn:acme:child'>
            <foo></foo>
            <bar></bar>
     </resource>
</resource>

The inference being that embedded resources are not necessarily resources.

Darrel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Kelly  
View profile  
 More options Jul 4 2012, 9:39 am
From: Mike Kelly <mikekelly...@gmail.com>
Date: Wed, 4 Jul 2012 14:39:01 +0100
Local: Wed, Jul 4 2012 9:39 am
Subject: Re: FYI - New version of the draft
Hi Darrel,

The I-D still contains a SHOULD in the recommendations section.

I take it you are not in favour of this change ?

Cheers,
M

--
Mike

http://twitter.com/mikekelly85
http://github.com/mikekelly
http://linkedin.com/in/mikekelly123


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darrel Miller  
View profile  
 More options Jul 4 2012, 11:58 am
From: Darrel Miller <darrel.mil...@gmail.com>
Date: Wed, 4 Jul 2012 11:58:59 -0400
Local: Wed, Jul 4 2012 11:58 am
Subject: Re: FYI - New version of the draft
I saw that it is still a SHOULD.

It's not that I have any specific objections to it.  It does however,
significantly change the meaning of a hal document.  We now support
the notion of representing a non existent resource.  That may be an
amazingly clever addition or it may cause untold pain.  Only time will
tell, I guess.

It does mean that hal can now be used to do exactly what mnot is doing
with json-problem, because we no longer have the problem of error
resources needing a URI.

e.g.
<resource >
  <resource rel="http://example.com/probs/out-of-credit" >
        <title>"You do not have enough credits."</title>
        <detail>"Your current balance is 30, but that costs 50."</title>
        <balance>30</balance>
        <account>http://api.example.com/account/12345</account>
  </resource>
</resource>

When we were talking about the ability to make _links optional in the
JSON variant, I had not put two and two together that it would remove
the identity link also, because in the XML variant embedded links and
the resource link are not tied together.

Darrel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Van De Vyver  
View profile  
 More options Jul 4 2012, 5:10 pm
From: Mark Van De Vyver <m...@taqtiqa.com>
Date: Thu, 5 Jul 2012 07:10:30 +1000
Local: Wed, Jul 4 2012 5:10 pm
Subject: Re: FYI - New version of the draft

Just to be clear: When I proposed making links optional I proposed
that an identity property, 'hal',
be required.
From memory,  making an identity link optional wasn't discussed.

Best wishes
Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »