Stephen Hahn wrote: > * Shawn Walker <swal...@opensolaris.org> [2008-12-23 20:56]: >> I'd like to ensure that we support multiple formats here, and require >> clients to request a specific one. > > Why do you want to support multiple formats? (Or do you mean allow > the possibility of multiple formats over time?)
My thought was providing a machine-readable and a human-readable format (i.e. json and text/plain). >> This also makes me wonder if the right request path style was chosen: >> >> authority?version=0&file_format=yaml >> >> instead of: >> >> authority/0/yaml > > I thought we liked to jam all optional parameters into headers. :) Tongue-in-cheek, I know, but: If you've read my draft doc/depot.txt, you'll note that we pass values three different ways: * via request path (e.g. http://auth/manifest/0/fmri) * via POST (e.g. http://auth/add/0/) * via headers (e.g. http://auth/catalog/0/) POST is a necessity for some operations (such as add) because of file content, but all of the parameter values could consistently be passed via GET ?& style instead. Cheers, -- Shawn Walker _______________________________________________ pkg-discuss mailing list pkg-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/pkg-discuss