Corrected default for consumes+produces

This commit is contained in:
Shelby Sanders 2014-08-06 00:19:15 -07:00
parent c6754baf83
commit cf3e6161ef
1 changed files with 2 additions and 2 deletions

View File

@ -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()
});