[openstack-dev] WSME / Pecan and only supporting JSON?

Sean Dague sean at dague.net
Thu Feb 27 13:28:18 UTC 2014


On 02/27/2014 08:13 AM, Doug Hellmann wrote:
> 
> 
> 
> On Thu, Feb 27, 2014 at 12:48 AM, Michael Davies <michael at the-davies.net
> <mailto:michael at the-davies.net>> wrote:
> 
>     Hi everyone,
> 
>     Over in "Ironic Land" we're looking at removing XML support from
>     ironic-api (i.e. https://bugs.launchpad.net/ironic/+bug/1271317)
> 
>     I've been looking, but I can't seem to find an easy way to modify
>     the accepted content_types.
> 
>     Are there any wsgi / WSME / Pecan experts out there who can point me
>     in the right direction?
> 
> 
> There's no support for turning off a protocol in WSME right now, but we
> could add that if we really need it.
> 
> Why would we turn it off, though? The point of dropping XML support in
> some of the other projects is that they use toolkits that require extra
> work to support it (either coding or maintenance of code we've written
> elsewhere for OpenStack). WSME supports both protocols without the API
> developer having to do any extra work.

Because if an interface is exported to the user, then it needs to be
both Documented and Tested. So that's double the cost on the validation
front, and the documentation front.

Exporting an API isn't set and forget. Especially with the semantic
differences between JSON and XML. And if someone doesn't feel the XML
created by WSME is semantically useful enough to expose to their users,
they shouldn't be forced to by the interface.

	-Sean

-- 
Sean Dague
Samsung Research America
sean at dague.net / sean.dague at samsung.com
http://dague.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140227/b9ee7ee4/attachment.pgp>


More information about the OpenStack-dev mailing list