-
Notifications
You must be signed in to change notification settings - Fork 15
REST API(HTTP HTTPS)
Kibae Shin edited this page Sep 27, 2025
·
6 revisions
| HTTP method | HTTP path | Description |
|---|---|---|
| GET | /api/sessions | List sessions |
| POST | /api/sessions | Create sessions |
| GET | /api/sessions/{model}/{version} | Get session |
| POST | /api/sessions/{model}/{version} | Execute session |
| DELETE | /api/sessions/{model}/{version} | Destroy session |
| GET | /api/version | Get ONNX Runtime version |
| GET | /health | Health check |
- API documentation (Swagger) is built in. If you want the server to serve swagger, add
the
--swagger-url-path=/swagger/option at launch. This must be used with the--http-portor--https-portoption../onnxruntime_server --http-port=8080 --swagger-url-path=/api-docs/
- After running the server as above, you will be able to access the Swagger UI available
at
http://localhost:8080/api-docs/.
- After running the server as above, you will be able to access the Swagger UI available
at
- Swagger Sample