-
Notifications
You must be signed in to change notification settings - Fork 7
REST API(HTTP HTTPS)
Kibae Shin edited this page Sep 8, 2023
·
5 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 | /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-port
or--https-port
option../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