Loading ...
Sorry, an error occurred while loading the content.

10582Re: [rest-discuss] Content negotiation unRESTful?

Expand Messages
  • Ben Ramsey
    Apr 1, 2008
    • 0 Attachment
      On 3/31/08 10:06 AM, Jan Algermissen wrote:
      > Hmm...wonder how one would do this with an Atom entry's content,
      > where there can only be one content which also should have a media
      > type attribute set.

      The atom:entry represents a particular resource with whatever content is
      specified by the atom:content element.

      The proper way to represent other types of representations of the same
      atom:entry would be to use an atom:link with a rel attribute of "alternate" and
      a type attribute for the specific media type represented by the URI in the link
      href.

      You can have multiple "alternate" atom:link elements provided that there is not
      more than one with the same combination of type and hreflang.

      --
      Ben Ramsey
      http://benramsey.com/
    • Show all 20 messages in this topic