Corrected default for consumes+produces
This commit is contained in:
parent
c6754baf83
commit
cf3e6161ef
|
@ -27,8 +27,8 @@ function Swagger(loopbackApplication, swaggerApp, opts) {
|
||||||
basePath: loopbackApplication.get('restApiRoot') || '/api',
|
basePath: loopbackApplication.get('restApiRoot') || '/api',
|
||||||
resourcePath: 'resources',
|
resourcePath: 'resources',
|
||||||
// Default consumes/produces to application/json
|
// Default consumes/produces to application/json
|
||||||
consumes: ['application/json'],
|
consumes: ['application/json', 'application/xml', 'text/xml'],
|
||||||
produces: ['application/json'],
|
produces: ['application/json', 'application/javascript', 'application/xml', 'text/javascript', 'text/xml'],
|
||||||
version: getVersion()
|
version: getVersion()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue