Merge pull request #38 from STRML/form-encoding

Newest Swagger UI requires application/x-www-form-urlencoded.
This commit is contained in:
Raymond Feng 2014-08-15 23:36:34 -07:00
commit 0d182939a0
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ function Swagger(loopbackApplication, swaggerApp, opts) {
swaggerVersion: '1.2',
basePath: loopbackApplication.get('restApiRoot') || '/api',
resourcePath: 'resources',
// Default consumes/produces to application/json
consumes: ['application/json'],
// Default consumes/produces
consumes: ['application/json', 'application/x-www-form-urlencoded'],
produces: ['application/json'],
version: getVersion()
});