[0.8.1] removing author and link from json responses

0 views
Skip to first unread message

Cassie

unread,
Jul 29, 2008, 1:51:37 PM7/29/08
to opensocial-an...@googlegroups.com
The portable contacts proposal already mentioned getting rid of the
"link" attribute in json collection responses so I would like to
propose that we also get rid of the unneeded "author" attribute in
json collections. Note: neither one of these attributes shows up in
the non-collection responses.

To be precise I propose that this example in the spec:

{
"author" : "example.org:58UIDCSIOP233FDKK3HD44",
"link" : {"rel" : "next", "href" : "http://api.example.org/..."},
"totalResults" : 100,
"startIndex" : 1
"itemsPerPage" : 10
"entry" : [
{...first thingie...},
{...second thingie...}
...
]
}

simplifies to this:

{
"totalResults" : 100,
"startIndex" : 1
"itemsPerPage" : 10
"entry" : [
{...first thingie...},
{...second thingie...}
...
]
}


For most of our collections (ie when you fetch your friends) I can't
even think of an author that would make sense.


- Cassie

Joseph Smarr

unread,
Jul 30, 2008, 3:39:02 PM7/30/08
to opensocial-an...@googlegroups.com
+1 from me. :) Less is more, esp. if no one is using the field. Thanks, js

John Panzer

unread,
Jul 30, 2008, 6:15:22 PM7/30/08
to opensocial-an...@googlegroups.com
+1 to removing from default set returned.  +1 to removing it from the set of fields that servers are required to make available.  -0 to removing the concept, though it may not be needed -- it would identify the person who owns the data, where that's applicable.  (Robert Scoble might find it applicable.)

John Panzer (http://abstractioneer.org)

Louis Ryan

unread,
Jul 30, 2008, 7:19:29 PM7/30/08
to opensocial-an...@googlegroups.com
+1 to what John said.

Paul Walker

unread,
Aug 1, 2008, 2:30:02 PM8/1/08
to opensocial-an...@googlegroups.com

+1 to removing any fields that are there simply there out of consistency w/ Atom.

Chris Chabot

unread,
Aug 4, 2008, 3:33:11 AM8/4/08
to opensocial-an...@googlegroups.com
This thread has quickly reached consensus and has gotten 5 +1 votes (counting Cassie as a +1 as the one proposing the spec change).

Thanks everyone involved!

-- Chris
Reply all
Reply to author
Forward
0 new messages