feature: supportedSubmitMethods config parameter (#4186)

This commit is contained in:
Scott O'Hara
2018-02-10 14:39:43 +11:00
committed by kyle
parent 3d7a00c0d0
commit f589cb99af
3 changed files with 14 additions and 3 deletions

View File

@@ -49,6 +49,16 @@ module.exports = function SwaggerUI(opts) {
defaultModelExpandDepth: 1,
defaultModelsExpandDepth: 1,
showExtensions: false,
supportedSubmitMethods: [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
],
// Initial set of plugins ( TODO rename this, or refactor - we don't need presets _and_ plugins. Its just there for performance.
// Instead, we can compile the first plugin ( it can be a collection of plugins ), then batch the rest.