modelPropertyMacro, parameterMacro

This commit is contained in:
Anna Bodnia
2017-05-19 18:50:51 +03:00
parent c66436e7d5
commit edfe88d299
6 changed files with 24 additions and 15 deletions

View File

@@ -77,6 +77,12 @@ window.onload = function() {
const ui = SwaggerUIBundle({
url: "http://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
modelPropertyMacro: function (model) {
return model
},
parameterMacro: function (operation, parameter) {
return parameter
},
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
@@ -94,8 +100,8 @@ window.onload = function() {
clientSecret: "your-client-secret-if-required",
realm: "your-realms",
appName: "your-app-name",
scopeSeparator: "-",
additionalQueryStringParams: {test: "hello"}
scopeSeparator: " ",
additionalQueryStringParams: {}
})
}
</script>