Skip to content

Commit f6e08c2

Browse files
authored
docs(openapi): Use command with file (#5349)
1 parent 1f32089 commit f6e08c2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

openapi/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ You will find the API Specs at runtime at the `/seldon.json` path of your API en
99

1010
You will need to be running 0.2.4-SNAPSHOT or later for this endpoint to be active.
1111

12-
## Viewing/Testing via Swagger-UI
12+
## Viewing/Testing via Swagger UI
1313

1414
You can view the APIs using the [Swagger UI tool](https://swagger.io/tools/swagger-ui/).
1515

16-
You can run this via Docker with:
16+
You can run this via Docker, from the [`seldon-core/openapi` directory](https://github.com/SeldonIO/seldon-core/tree/master/openapi), with:
1717

1818
```bash
19-
docker run --network host --rm swaggerapi/swagger-editor
19+
docker run -p 8080:8080 --rm -e URL=/custom.yaml -v ./wrapper.oas3.json:/usr/share/nginx/html/custom.yaml swaggerapi/swagger-ui
2020
```
2121

2222
It will be reachable at http://localhost:8080/
@@ -39,5 +39,3 @@ For using the Swagger "try it out" feature there are some caveats due to Swagger
3939
We welcome contributions to improving these initial API specifications.
4040

4141
We plan to investigate how these APIs can be customized to show the acceptable payloads for a particular machine learning inference graph running under Seldon Core. Suggestions welcome.
42-
43-

0 commit comments

Comments
 (0)