docs: fix typos and update https references (#8154)
Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
This commit is contained in:
committed by
GitHub
parent
7e65155a7b
commit
9891d97201
@@ -7,7 +7,7 @@ Swagger UI leans heavily on concepts and patterns found in React and Redux.
|
||||
If you aren't already familiar, here's some suggested reading:
|
||||
|
||||
- [React: Quick Start (reactjs.org)](https://reactjs.org/docs/hello-world.html)
|
||||
- [Redux README (redux.js.org)](http://redux.js.org/)
|
||||
- [Redux README (redux.js.org)](https://redux.js.org/)
|
||||
|
||||
In the following documentation, we won't take the time to define the fundamentals covered in the resources above.
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ The Action interface enables the creation of new Redux action creators within a
|
||||
|
||||
This action creator function will be exposed to container components as `exampleActions.updateFavoriteColor`. When this action creator is called, the return value (which should be a [Flux Standard Action](https://github.com/acdlite/flux-standard-action)) will be passed to the `example` reducer, which we'll define in the next section.
|
||||
|
||||
For more information about the concept of actions in Redux, see the [Redux Actions documentation](http://redux.js.org/docs/basics/Actions.html).
|
||||
For more information about the concept of actions in Redux, see the [Redux Actions documentation](https://redux.js.org/tutorials/fundamentals/part-2-concepts-data-flow#actions).
|
||||
|
||||
#### Reducers
|
||||
|
||||
|
||||
@@ -369,7 +369,7 @@ Example:
|
||||
|
||||
```sh
|
||||
SUPPORTED_SUBMIT_METHODS="[\"get\", \"post\"]"
|
||||
URLS="[ { url: \"http://petstore.swagger.io/v2/swagger.json\", name: \"Petstore\" } ]"
|
||||
URLS="[ { url: \"https://petstore.swagger.io/v2/swagger.json\", name: \"Petstore\" } ]"
|
||||
```
|
||||
|
||||
##### Object variables
|
||||
@@ -387,5 +387,5 @@ SPEC="{ \"openapi\": \"3.0.0\" }"
|
||||
#### .env file example encoding
|
||||
```sh
|
||||
SUPPORTED_SUBMIT_METHODS=['get', 'post']
|
||||
URLS=[ { url: 'http://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
|
||||
URLS=[ { url: 'https://petstore.swagger.io/v2/swagger.json', name: 'Petstore' } ]
|
||||
```
|
||||
|
||||
@@ -41,11 +41,11 @@ XMLHttpRequest cannot load http://sad.server.com/v2/api-docs. No 'Access-Control
|
||||
|
||||
Swagger UI cannot easily show this error state.
|
||||
|
||||
- Use the http://www.test-cors.org website to verify CORS support. Keep in mind this will show a successful result even if `Access-Control-Allow-Headers` is not available, which is still required for Swagger UI to function properly.
|
||||
- Use the https://www.test-cors.org website to verify CORS support. Keep in mind this will show a successful result even if `Access-Control-Allow-Headers` is not available, which is still required for Swagger UI to function properly.
|
||||
|
||||
### Enabling CORS
|
||||
|
||||
The method of enabling CORS depends on the server and/or framework you use to host your application. http://enable-cors.org provides information on how to enable CORS in some common web servers.
|
||||
The method of enabling CORS depends on the server and/or framework you use to host your application. https://enable-cors.org provides information on how to enable CORS in some common web servers.
|
||||
|
||||
Other servers/frameworks may provide you information on how to enable it specifically in their use case.
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ If you've determined this is the version you have, to find the exact version:
|
||||
/**
|
||||
* swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
|
||||
* @version v2.2.9
|
||||
* @link http://swagger.io
|
||||
* @link https://swagger.io
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user