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
Service Discovery and Custom Media Types (Forked: Proposal: Change rel and class values from string-separated token to arrays)
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
  2 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
 
Kevin Swiber  
View profile  
 More options Aug 6 2012, 9:58 pm
From: Kevin Swiber <kswi...@gmail.com>
Date: Mon, 6 Aug 2012 21:58:28 -0400
Local: Mon, Aug 6 2012 9:58 pm
Subject: Re: [siren] Service Discovery and Custom Media Types (Forked: Proposal: Change rel and class values from string-separated token to arrays)

Hey Pat,

Siren is intended to be used as a generic media type, like text/html.  Some
folks do prefer app-specific media types or even types with more
granularity (e.g., application/vnd.com.sun.cloud.Cloud+json).  There's
nothing wrong with that, but like any design decision, there are
trade-offs.  I went down this route for a while before settling on a more
generic type (leading to Siren).

Some benefits of generic media types that I see: Having a generic media
type means having reusable parsers.  Any API client for a Siren-powered
hypermedia API can get a head start by understanding the Siren library
(which is relatively simple).  It also means having a common, documented
structure for hypermedia messages, hopefully providing a value of reduced
client/server coupling and independent evolution.  Using
application/vnd.siren+json will soon be more than just a casual
recommendation.  It is going through the IANA media type registration
process at the moment.

I know you're a fan of Google Service Discovery documents, but I honestly
haven't looked into it much.  Do you think Google Service Discovery
documents could describe a service API that's built on top of Siren?  I
would advocate including a link to a profile[2], possibly using
"describedby" semantics.  If the "profile" link relation[3] becomes a
standard, I think this would be my preference.  Curious to see your
thoughts on this.

Thanks!

[1] http://www.amundsen.com/hypermedia/hfactor/
[2] http://gmpg.org/xmdp/
[3] http://tools.ietf.org/html/draft-wilde-profile-link-02

--
Kevin Swiber
Projects: https://github.com/kevinswiber
Twitter: @kevinswiber

 
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.
Pat Cappelaere  
View profile  
 More options Aug 6 2012, 11:09 pm
From: Pat Cappelaere <cappela...@gmail.com>
Date: Mon, 6 Aug 2012 23:09:25 -0400
Local: Mon, Aug 6 2012 11:09 pm
Subject: Re: [siren] Service Discovery and Custom Media Types (Forked: Proposal: Change rel and class values from string-separated token to arrays)

Kevin,

I appreciate your hardwork on this.
My personal preference would be to avoid app specific media types.  It is not helpful as far as I can tell.

I do think that a Google Service Discovery Document can describe the full protocol that an app may require.
That protocol will require some Hypermedia capability, so we need something like Siren (or HAL for that matter)
The JSON schema could be derived from a Siren profile, I guess (assuming a JSON encoding)

I am not sure I truly understand [3], sorry!  but found a good discussion here: http://www.mnot.net/blog/2012/04/17/profiles

So I guess my vote, today, could be:
application/json; profile="http://example.com/orders"; describedby="schema.rnc"

:)
Does this help at all?

Pat.

On Aug 6, 2012, at 9:58 PM, Kevin Swiber <kswi...@gmail.com> wrote:


 
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 »