On Thu, Feb 27, 2014 at 8:28 AM, Sean Dague <[email protected]> wrote:

> On 02/27/2014 08:13 AM, Doug Hellmann wrote:
> >
> >
> >
> > On Thu, Feb 27, 2014 at 12:48 AM, Michael Davies <[email protected]
> > <mailto:[email protected]>> 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
> [email protected] / [email protected]
> http://dague.net
>
>
> _______________________________________________
> OpenStack-dev mailing list
> [email protected]
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to