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

Doug Hellmann doug.hellmann at dreamhost.com
Thu Feb 27 13:59:26 UTC 2014


On Thu, Feb 27, 2014 at 8:28 AM, Sean Dague <sean at dague.net> wrote:

> 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.
>

I guess I can see that.

Bugs and blueprints can be filed at https://launchpad.net/wsme. It's not
likely to happen in the next few weeks, but it shouldn't be difficult to
provide some sort of switch to turn off XML support.

Doug



>
>         -Sean
>
> --
> Sean Dague
> Samsung Research America
> sean at dague.net / sean.dague at samsung.com
> http://dague.net
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140227/a1e542e9/attachment.html>


More information about the OpenStack-dev mailing list