Skip to content

Commit

Permalink
Fix swagger UI example (#432)
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 authored Dec 22, 2024
1 parent 3c2e5da commit 3f9bdb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/get_started/swagger_ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ spec:
args: ["--enable_docs_url=True"]
modelFormat:
name: sklearn
runtime: kserve-sklearnserver
storageUri: "gs://kfserving-examples/models/sklearn/1.0/model"
EOF
```

After the InferenceService becomes ready the Swagger UI will be served at **`/docs`**.
In our example above, the Swagger UI will be available at `http://sklearn-iris.kserve-test.example.com/docs`.

!!! note
The Swagger UI may not be exposed or exposed with a different endpoint on other serving runtimes. For example, the MLServer runtime exposes the Swagger UI at `/v2/docs` endpoint. This example is only applicable to the KServe provided runtimes and runtimes that extend the KServe runtime SDK.

## Interact with InferenceService

Click one of the V2 endpoints like `/v2`, it will expand and display the description and response from this API endpoint:
Expand Down

0 comments on commit 3f9bdb9

Please sign in to comment.