This project has retired. For details please refer to its Attic page.
Serve REST API | Apache Submarine
Skip to main content
Version: master 🏃

Serve REST API

caution

The Serve API is in the alpha stage which is subjected to incompatible changes in future releases.

Create a model serve

POST /api/v1/serve

Parameters

Field NameTypeDescriptionRequired
modelNameStringRegistered model name.o
modelVersionStringRegistered model version.o

Example

note

Make sure there is a model named simple with version 1 in the database.

Example Request
curl -X POST -H "Content-Type: application/json" -d '
{
"modelName": "simple",
"modelVersion":1,
}
' http://127.0.0.1:32080/api/v1/serve
Example Response
{
"status":"OK",
"code":200,
"success":true,
"message":"Create a serve instance",
"result":{"url":null},
"attributes":{}
}

Delete the TensorFlow model serve

DELETE /api/v1/serve

Parameters

Field NameTypeDescriptionRequired
modelNameStringRegistered model name.o
modelVersionStringRegistered model version.o

Example

Example Request
curl -X DELETE -H "Content-Type: application/json" -d '
{
"modelName": "simple",
"modelVersion":1,
}
' http://127.0.0.1:32080/api/v1/serve
Example Response
{
"status":"OK",
"code":200,
"success":true,
"message":"Delete the model serve instance",
"result":null,
"attributes":{}
}