REST API Design Rulebook by Mark Masse

REST API Design Rulebook by Mark Masse

Author:Mark Masse [Mark Masse]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Web / General
ISBN: 9781449310493
Publisher: O'Reilly Media
Published: 2011-10-18T16:00:00+00:00


Rule: Media type negotiation should be supported when multiple representations are available

Allow clients to negotiate for a given format and schema by submitting an Accept header with the desired media type. For example:

# NOTE: the line breaks below are for the sake of visual clarity. Accept: application/wrml; format="http://api.formats.wrml.org/text/html"; schema="http://api.schemas.wrml.org/soccer/Team"

Using media type negotiation clients can select a format.

Using media type negotiation clients can select the schema version that will work best for them.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.