I'd do the following:
/dogs -> All the dogs
/dogs/{dogid} -> Only the dog {dogid}
/owners/{id}/dogs -> All the dogs owned by {id}
/owners/{id}/dogs?fields=name,age -> All the dogs owned by {id}, give
me only the specified fields
And so on. Each dog have a link, with rel="owner" in its
representation, that points to the URI of its owner. No need to repeat
fields. I don't need the necessity of fields[owners]=name,age in the
querystring. But perhaps I'm missing something.
Cheers,
Enrique Amodeo
> --
> You received this message because you are subscribed to the Google Groups
> "API Craft" group.
> To unsubscribe from this group, send email to
>
api-craft+...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/api-craft?hl=en.
>
>