Skip to content

Commit 3abf835

Browse files
committed
Revert "Updating documentation based on issue swagger-ui issue #1414"
1 parent 015f1a1 commit 3abf835

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,6 @@ swaggerUi.api.clientAuthorizations.add("key", new SwaggerClient.ApiKeyAuthorizat
131131

132132
Note! You can pass multiple header params on a single request, just use unique names for them (`key` is used in the above example).
133133

134-
If the header parameters are required when loading the `swagger.json`, you will need to pass the authorizations as part of the `SwaggerUi` constructor so they are available when swagger-ui retrieves those documents.
135-
```js
136-
new SwaggerUi({
137-
// ...
138-
authorizations {
139-
"apiKey": new SwaggerClient.ApiKeyAuthorization("X-YOUR-API-KEY-HEADER", "YOUR-API-KEY-VALUE", "header")
140-
},
141-
// ...
142-
});
143-
```
144-
145134
### Localization and translation
146135
The localization files are in the [lang](/lang) directory. Note that language files and translator is not included in SwaggerUI by default. You need to add them manually.
147136

0 commit comments

Comments
 (0)