Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
API response formats: which ones would you use?
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
  15 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
 
Shawn Allen  
View profile  
(1 user)  More options Jul 24 2007, 4:23 pm
From: Shawn Allen <sh...@stamen.com>
Date: Tue, 24 Jul 2007 13:23:58 -0700
Local: Tues, Jul 24 2007 4:23 pm
Subject: API response formats: which ones would you use?
Hey everyone,

I'm almost at a stopping point with my proposed specs. One thing I'm  
struggling with right now is the decision to include two XML response  
formats: Atom, and a custom XML vocabulary. Atom suits all of  
Pownce's needs when it comes to getting and posting notes:

- <atom:content> can contain XHTML, in which we can easily encode all  
Pownce-specific metadata (including the use of microformats for user  
and event info)
- REST defines the mechanism for posting: POST <atom:entry> elements,  
PUT/POST file uploads, use <atom:link> to tie them together
- the Atom Publishing Protocol allows us to make endpoints discoverable

What Atom doesn't address for us is user information endpoints, lists  
of friends, and sets. Going the APP collection route also requires a  
lot more maintenance on our end, and I'm not sure that many people  
will use it.

What we gain from having a custom XML response format is conciseness  
and a uniform interface across all endpoints. However, maintaining  
both the XML and Atom formats also requires additional maintenance,  
and risks the chance that one will become an orphan used by very few  
people.

I'm leaning toward a hybrid at this point. I really like Atom, and it  
fulfills about 90% of our requirements–the rest I can fill in with  
namespaced XML. I'm also open to the idea of keeping some namespaced  
XML in the Atom feeds if it turns out that there's information that  
we need to publish that isn't covered by Atom.

So, the question is: what would you use? If Atom were the only game  
in town for note publishing, would you scoff at the idea of having to  
build up <atom:content> blocks that defined required information in  
XHTML? Or would you prefer to use the Pownce-specific XML vocabulary  
because it would (presumably) be easier to parse and generate?

Thanks,
--
Shawn Allen
sh...@stamen.com
+1 415 558 1610


    Reply to author    Forward  
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.
bear  
View profile  
 More options Jul 24 2007, 5:35 pm
From: bear <bea...@gmail.com>
Date: Tue, 24 Jul 2007 21:35:24 -0000
Local: Tues, Jul 24 2007 5:35 pm
Subject: Re: API response formats: which ones would you use?
I'm all for using Atom as much as possible - it would make the 90% of
the data very easy to munge.

The remaining bits (sets, lists of friends, etc) sound like
information that can be retrieved as needed by special case endpoints
as they don't fall into the "normal" data flow.

So for me: Atom for all posts and something simple for the rest - it
doesn't even have to be XML (but I figure that's a long-shot
request :)


    Reply to author    Forward  
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.
Kortina  
View profile  
 More options Jul 24 2007, 5:46 pm
From: Kortina <kort...@gmail.com>
Date: Tue, 24 Jul 2007 17:46:52 -0400
Local: Tues, Jul 24 2007 5:46 pm
Subject: Re: [PownceAPI] Re: API response formats: which ones would you use?
I agree, Atom sounds like the way to go for anything that fits it.

On 7/24/07, bear <bea...@gmail.com> wrote:

> I'm all for using Atom as much as possible - it would make the 90% of
> the data very easy to munge.

> The remaining bits (sets, lists of friends, etc) sound like
> information that can be retrieved as needed by special case endpoints
> as they don't fall into the "normal" data flow.

> So for me: Atom for all posts and something simple for the rest - it
> doesn't even have to be XML (but I figure that's a long-shot
> request :)

--
Kortina
kortina.net

    Reply to author    Forward  
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.
mave99a  
View profile  
 More options Jul 25 2007, 8:52 pm
From: mave99a <zhihong....@gmail.com>
Date: Thu, 26 Jul 2007 00:52:31 -0000
Local: Wed, Jul 25 2007 8:52 pm
Subject: Re: API response formats: which ones would you use?
I wish to support several data format, XML, JSON, ... whatever
developer may use.

On Jul 25, 5:46 am, Kortina <kort...@gmail.com> wrote:


    Reply to author    Forward  
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.
FighterHayabusa  
View profile  
 More options Jul 26 2007, 3:15 am
From: FighterHayabusa <daniel.lofqu...@gmail.com>
Date: Thu, 26 Jul 2007 00:15:52 -0700
Local: Thurs, Jul 26 2007 3:15 am
Subject: Re: API response formats: which ones would you use?
Atom and XML sounds good, but I'd really like to see JSON in there as
well.

    Reply to author    Forward  
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.
jamesv  
View profile  
 More options Jul 26 2007, 9:12 am
From: jamesv <jamesvreel...@gmail.com>
Date: Thu, 26 Jul 2007 06:12:29 -0700
Local: Thurs, Jul 26 2007 9:12 am
Subject: Re: API response formats: which ones would you use?
I'd love to echo the sentiment for multiple response formats based off
a flag in the query. While an RSS or Atom DTD might be interesting, it
seems like you would end up shoehorning data into it in almost no time
at all. Custom XML is probably your safest bet if you end up going for
a single format.

That being said, my personal preference would be JSON, as I can easily
see uses of the system where it would be ideal to keep the added
weight of a full scale parser out of an application if possible (flash
widgets/google gadgets, embedded mobile platforms, rich media banners)
not to mention it's just bloody simple to work with.


    Reply to author    Forward  
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.
maurice.svay@gmail.com  
View profile  
 More options Jul 26 2007, 10:05 am
From: "maurice.s...@gmail.com" <maurice.s...@gmail.com>
Date: Thu, 26 Jul 2007 07:05:57 -0700
Local: Thurs, Jul 26 2007 10:05 am
Subject: Re: API response formats: which ones would you use?
I think that offering multiple output formats is the way to go.
Personally, I would use JSON.

On Jul 24, 10:23 pm, Shawn Allen <sh...@stamen.com> wrote:


    Reply to author    Forward  
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.
mykoleary  
View profile  
 More options Jul 26 2007, 10:14 am
From: mykoleary <m...@blueneedle.com>
Date: Thu, 26 Jul 2007 14:14:51 -0000
Local: Thurs, Jul 26 2007 10:14 am
Subject: Re: API response formats: which ones would you use?
I prefer XML to JSON just because I have so much reusable code at my
disposal.  What format that XML comes in is almost inconsequential.

One benefit for your platform is that if you use ATOM, it will be
easier for newbie mashup developers to use the new tools coming out
(Bungee Connect, MS Popfly, OpenKapow, Google Mashup Editor, etc...)
to make apps and what nots that use your platform.  You'll also not
need to spend extra time writing code to present custom feeds for
people that just want to subscribe to a URL of notes in an aggregator.

-Mykoleary

On Jul 24, 1:23 pm, Shawn Allen <sh...@stamen.com> wrote:


    Reply to author    Forward  
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.
Singpolyma  
View profile  
 More options Jul 26 2007, 10:15 am
From: Singpolyma <singpol...@gmail.com>
Date: Thu, 26 Jul 2007 14:15:52 -0000
Local: Thurs, Jul 26 2007 10:15 am
Subject: Re: API response formats: which ones would you use?
I'm shaky on ATOM, but agree it makes sense.  XHTML+uF is great!  XFN
can also do friends + hCard users + XOXO lists of things.  I would say
use ATOM where plausible and XOXO as the 'custom XML'

On Jul 24, 4:23 pm, Shawn Allen <sh...@stamen.com> wrote:


    Reply to author    Forward  
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.
brian.gefrich@gmail.com  
View profile  
 More options Jul 26 2007, 10:17 am
From: "brian.gefr...@gmail.com" <brian.gefr...@gmail.com>
Date: Thu, 26 Jul 2007 14:17:17 -0000
Local: Thurs, Jul 26 2007 10:17 am
Subject: Re: API response formats: which ones would you use?
I also use XML, but I wouldn't want to feel like I couldn't try
something with JSON or incorporate features or compatibility with
other agents because the support isn't there.

I definitely put my vote on having multiple formats supported.  (Hey,
because you guys have tons of free time, right?)

On Jul 26, 10:14 am, mykoleary <m...@blueneedle.com> wrote:


    Reply to author    Forward  
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.
Singpolyma  
View profile  
 More options Jul 26 2007, 10:43 am
From: Singpolyma <singpol...@gmail.com>
Date: Thu, 26 Jul 2007 14:43:59 -0000
Local: Thurs, Jul 26 2007 10:43 am
Subject: Re: API response formats: which ones would you use?

> - REST defines the mechanism for posting: POST <atom:entry> elements,

Please don't make us POST raw XML -- give it a field name :)

    Reply to author    Forward  
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.
Singpolyma  
View profile  
 More options Jul 26 2007, 10:44 am
From: Singpolyma <singpol...@gmail.com>
Date: Thu, 26 Jul 2007 14:44:52 -0000
Local: Thurs, Jul 26 2007 10:44 am
Subject: Re: API response formats: which ones would you use?

> That being said, my personal preference would be JSON, as I can easily
> see uses of the system where it would be ideal to keep the added
> weight of a full scale parser out of an application if possible (flash
> widgets/google gadgets, embedded mobile platforms, rich media banners)
> not to mention it's just bloody simple to work with.

JSONP!

    Reply to author    Forward  
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.
Shawn Allen  
View profile  
(1 user)  More options Jul 26 2007, 1:03 pm
From: Shawn Allen <sh...@stamen.com>
Date: Thu, 26 Jul 2007 10:03:26 -0700
Local: Thurs, Jul 26 2007 1:03 pm
Subject: Re: [PownceAPI] Re: API response formats: which ones would you use?
On Jul 26, 2007, at 7:43 AM, Singpolyma wrote:

>> - REST defines the mechanism for posting: POST <atom:entry> elements,

> Please don't make us POST raw XML -- give it a field name :)

I feel pretty strongly that if we're sending XML (or JSON, or Atom)  
we should be receiving it as well. JavaScript, for example, is  
perfectly capable of populating the request body with JSON or XML and  
setting request headers.

Cheers,
Shawn


    Reply to author    Forward  
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.
Ben Dodson  
View profile  
 More options Jul 27 2007, 10:18 am
From: Ben Dodson <b...@bendodson.com>
Date: Fri, 27 Jul 2007 14:18:47 -0000
Local: Fri, Jul 27 2007 10:18 am
Subject: Re: API response formats: which ones would you use?
Along with most of the other contributors to this thread, I'd like to
see multiple formats supported (in the same way that the Twitter API
does) although if you were only to choose one I would definitely plump
for an XML response.

--
e: b...@bendodson.com
w: http://www.bendodson.com/

On Jul 24, 9:23 pm, Shawn Allen <sh...@stamen.com> wrote:


    Reply to author    Forward  
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.
Craig Saila  
View profile  
 More options Jul 27 2007, 11:09 am
From: "Craig Saila" <crsa...@gmail.com>
Date: Fri, 27 Jul 2007 11:09:15 -0400
Local: Fri, Jul 27 2007 11:09 am
Subject: Re: [PownceAPI] Re: API response formats: which ones would you use?
On 7/27/07, Ben Dodson wrote:

> Along with most of the other contributors to this thread, I'd like to
> see multiple formats supported (in the same way that the Twitter API

Another vote for multiple formats (i.e., JSON), but if that's not
doable, ATOM+name-spaced XML.

--
Cheers,

Craig Saila
------------------------------------------
http://www.saila.com/
------------------------------------------


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google