Differences between revisions 1 and 2
Revision 1 as of 2009-04-01 13:43:26
Size: 1396
Editor: p@state-of-mind
Comment:
Revision 2 as of 2009-04-01 13:43:27
Size: 1392
Editor: p@state-of-mind
Comment: Migrated to Confluence 4.0
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DEV/versions/14352701
One question is what to use for the representation of each resource?  That is, when you access a user's settings by retrieving
some URL, what format are the results in?  We could use:
#pragma page-filename DEV/versions/7962730
One question is what to use for the representation of each resource? That is, when you access a user's settings by retrieving<<BR>> some URL, what format are the results in? We could use:
Line 9: Line 8:
I suggest using JSON. Libraries are available for most relevant programming languages and it's reasonably human-readable.
There's no obvious standard format to use; designing a custom XML format also seems unnecessary.&nbsp; We decided at pycon08 that we should provide HTML and JSON differentiated by extensions .json and .html and for resources that make sense internationalized we could even do jp.html and so on.&nbsp; Also taking the recommendation of Leonard Richardson we will also honor the representation request in the {{{Accept}}} and {{{Accept-Language}}} headers.
Line 12: Line 9:
In the URL paths, do we want to use human-readable list names and e-mail addresses, or identifiers?  For example, do we want
/list/mailman-developers/, or /list/123456/?  The human-readable names make it convenient to poke around on the REST interface,
but also require us to worry about quoting --( can you have a list named 'foo/bar'? )-- and people may assemble URLs instead of looking up the correct one.
I suggest using JSON. Libraries are available for most relevant programming languages and it's reasonably human-readable.<<BR>> There's no obvious standard format to use; designing a custom XML format also seems unnecessary.  We decided at pycon08 that we should provide HTML and JSON differentiated by extensions .json and .html and for resources that make sense internationalized we could even do jp.html and so on.  Also taking the recommendation of Leonard Richardson we will also honor the representation request in the `Accept` and `Accept-Language` headers.

In the URL paths, do we want to use human-readable list names and e-mail addresses, or identifiers? For example, do we want<<BR>> /list/mailman-developers/, or /list/123456/? The human-readable names make it convenient to poke around on the REST interface,<<BR>> but also require us to worry about quoting - can you have a list named 'foo/bar'? - and people may assemble URLs instead of looking up the correct one.

One question is what to use for the representation of each resource? That is, when you access a user's settings by retrieving
some URL, what format are the results in? We could use:

  • HTML
  • An existing XML format for representing data structures, such as XML-RPC's serialization.
  • A custom-designed XML format.
  • JSON

I suggest using JSON. Libraries are available for most relevant programming languages and it's reasonably human-readable.
There's no obvious standard format to use; designing a custom XML format also seems unnecessary.  We decided at pycon08 that we should provide HTML and JSON differentiated by extensions .json and .html and for resources that make sense internationalized we could even do jp.html and so on.  Also taking the recommendation of Leonard Richardson we will also honor the representation request in the Accept and Accept-Language headers.

In the URL paths, do we want to use human-readable list names and e-mail addresses, or identifiers? For example, do we want
/list/mailman-developers/, or /list/123456/? The human-readable names make it convenient to poke around on the REST interface,
but also require us to worry about quoting - can you have a list named 'foo/bar'? - and people may assemble URLs instead of looking up the correct one.

MailmanWiki: DEV/Initial Considerations (last edited 2009-04-01 13:43:27 by p@state-of-mind)