On Tue, Jun 24, 2008 at 6:08 PM, John Panzer <jpa...@google.com> wrote:
> All,
>
> There's been some discussion about how the People RESTful API operates in
> the context of Friends, in particular:
> 1. When you don't actually have the power to just insert something into
> 'your' @friends collection, because friending requires double opt-in from
> both parties; and
> 2. When the records you get in @friends are actually information provided by
> the social network on behalf of your friends, that is, the records represent
> _connections_ to a person in the network rather than a static collection of
> fields.
>
I think I know what you're getting at here but it's a little vague. #2
is a situation where people/john.doe/@friends returns a collection of
people resources that are actual resources on the social network that
could be accessed via userid, such that if you got back 'jane.doe' id
in the collection, you could do /people/jane.doe/@self and get her
profile. In fact, the default representation of @friends is assumed to
be a collection of full profile resources for those people. (This is
the way it's done in shindig, you could also just return links to the
resources themselves.)
When you refer to a "static collection of fields" are you saying
something like a private data set (like an email address book record)
that is only usable by the user in question and not globally available
resources on the social network?
davep
Thank you John! This is what I was hoping for when I asked for better
write semantics. This is great stuff! One comment below:
I think I know what you're getting at here but it's a little vague. #2
On Tue, Jun 24, 2008 at 6:08 PM, John Panzer <jpa...@google.com> wrote:
> All,
>
> There's been some discussion about how the People RESTful API operates in
> the context of Friends, in particular:
> 1. When you don't actually have the power to just insert something into
> 'your' @friends collection, because friending requires double opt-in from
> both parties; and
> 2. When the records you get in @friends are actually information provided by
> the social network on behalf of your friends, that is, the records represent
> _connections_ to a person in the network rather than a static collection of
> fields.
>
is a situation where people/john.doe/@friends returns a collection of
people resources that are actual resources on the social network that
could be accessed via userid, such that if you got back 'jane.doe' id
in the collection, you could do /people/jane.doe/@self and get her
profile. In fact, the default representation of @friends is assumed to
be a collection of full profile resources for those people. (This is
the way it's done in shindig, you could also just return links to the
resources themselves.)
When you refer to a "static collection of fields" are you saying
something like a private data set (like an email address book record)
that is only usable by the user in question and not globally available
resources on the social network?