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',
|
||||
resourcePath: 'resources',
|
||||
// Default consumes/produces to application/json
|
||||
consumes: ['application/json'],
|
||||
produces: ['application/json'],
|
||||
consumes: ['application/json', 'application/xml', 'text/xml'],
|
||||
produces: ['application/json', 'application/javascript', 'application/xml', 'text/javascript', 'text/xml'],
|
||||
version: getVersion()
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue