This is non-trivial to a non-wsgi/pecan/wsme expert :)
The actual server appears to be built in ...ironic/cmd/api.py as simple_server.make_server(). This specifies app.VersionSelectorApplication as the request handler. This class is specified in ...ironic/api/app.py, and it appears that you can specify a default_renderer to pecan.make_app() but this only specifies the default renderer, rather than a list of allowed renderers.
In ...pecan/core.py a list of content_types is read from configuration. This is where I'll continue searching to see if we can specify only 'application/json' as the valid content type.
This is non-trivial to a non-wsgi/pecan/wsme expert :)
The actual server appears to be built in ...ironic/ cmd/api. py as simple_ server. make_server( ). This specifies app.VersionSele ctorApplication as the request handler. This class is specified in ...ironic/ api/app. py, and it appears that you can specify a default_renderer to pecan.make_app() but this only specifies the default renderer, rather than a list of allowed renderers.
In ...pecan/core.py a list of content_types is read from configuration. This is where I'll continue searching to see if we can specify only 'application/json' as the valid content type.