You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The path of JSON endpoint that describes the API
175
175
* @default '/swagger.json'
176
176
*/
177
177
jsonPath?: string;
178
178
179
+
/**
180
+
* The path for the controller that serves the JSON that describes the API.If jsonPath is specified and this parameter is not, it will take jsonPath value.Useful when behind a reverse proxy
181
+
* @default '/swagger.json'
182
+
*/
183
+
jsonRoutePath?: string;
184
+
179
185
/**
180
186
* The base path from where the API starts i.e. `/v2/` (note, needs to start with `/`)
Copy file name to clipboardExpand all lines: optionsreference.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@
11
11
12
12
#### JSON (JSON endpoint needed to create UI)
13
13
14
-
-`jsonPath`: (string) The path of JSON endpoint at describes the API - default: `/swagger.json`
14
+
-`jsonPath`: (string) The path of the JSON endpoint that describes the API - default: `/swagger.json`
15
+
-`jsonRoutePath`: (string) The path for the controller that serves the JSON that describes the API. If jsonPath is specified and this parameter is not, it will take jsonPath value. Useful when behind a reverse proxy - default: `/swagger.json`
15
16
-`basePath`: (string) The base path from where the API starts i.e. `/v2/` (note, needs to start with `/`) - default: `/`
16
17
-`pathPrefixSize`: (number) Selects what segment of the URL path is used to group endpoints - default: `1`
17
18
-`pathReplacements` : (array) methods for modifying path and group names in documentation - default: `[]`
@@ -52,7 +53,7 @@
52
53
53
54
-`swaggerUI`: (boolean) Add files that support SwaggerUI. Only removes files if `documentationPage` is also set to false - default: `true`
54
55
-`swaggerUIPath`: (string) The path of to all the SwaggerUI resources - default: `/swaggerui/`
55
-
-`routesBasePath`: (string) The path to all the SwaggerUI assets endpoints. If swaggerUIPath is specified and this parameter is not, it will take swaggerUIPath value - default: `/swaggerui/`
56
+
-`routesBasePath`: (string) The path to all the SwaggerUI assets endpoints. If swaggerUIPath is specified and this parameter is not, it will take swaggerUIPath value. Useful when behind a reverse proxy - default: `/swaggerui/`
-`documentationPath`: (string) The path of the documentation page - default: `/documentation`
58
59
-`templates`: (string) The directory path used by `hapi-swagger` and `@hapi/vision` to resolve and load the templates to render `swagger-ui` interface. The directory must contain `index.html` and `debug.html` templates. Default is `templates` directory in this package.
0 commit comments