Register Model REST API
caution
The Registered Model API is in the alpha stage which is subjected to incompatible changes in future releases.
Create a registered modelβ
POST /api/v1/registered-model
Parametersβ
Field Name | Type | Description | Required |
---|---|---|---|
name | String | Registered model name. | o |
description | String | Registered model description. | x |
tags | List<String> | Registered model tags. | x |
Exampleβ
Example Request
curl -X POST -H "Content-Type: application/json" -d '
{
"name": "example_name",
"description": "example_description",
"tags": ["123", "456"]
}
' http://127.0.0.1:32080/api/v1/registered-model
Example Response
{
"status":"OK",
"code":200,
"success":true,
"message":"Create a registered model instance",
"result":null,
"attributes":{}
}
List registered modelsβ
GET /api/v1/registered-model
Exampleβ
Example Request
curl -X GET http://127.0.0.1:32080/api/v1/registered-model
Example Response
{
"attributes" : {},
"code" : 200,
"message" : "List all registered model instances",
"result" : [
{
"creationTime" : "2021-12-16 10:14:06",
"description" : "example_description",
"lastUpdatedTime" : "2021-12-16 10:14:06",
"name" : "example_name",
"tags" : [
"123",
"456"
]
},
{
"creationTime" : "2021-12-16 10:16:25",
"description" : "example_description",
"lastUpdatedTime" : "2021-12-16 10:16:25",
"name" : "example_name1",
"tags" : [
"123",
"456"
]
},
{
"creationTime" : "2021-12-12 02:27:05",
"description" : null,
"lastUpdatedTime" : "2021-12-14 12:49:33",
"name" : "register",
"tags" : []
}
],
"status" : "OK",
"success" : true
}
Get a registered modelβ
GET /api/v1/registered-model/{name}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | path | registered model name. | o |
Exampleβ
Example Request
curl -X GET http://127.0.0.1:32080/api/v1/registered-model/example_name
Example Response
{
"attributes" : {},
"code" : 200,
"message" : "Get the registered model instance",
"result" : {
"creationTime" : "2021-12-16 10:14:06",
"description" : "example_description",
"lastUpdatedTime" : "2021-12-16 10:14:06",
"name" : "example_name",
"tags" : [
"123",
"456"
]
},
"status" : "OK",
"success" : true
}
Patch a registered modelβ
PATCH /api/v1/registered-model/{name}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | path | registered model name. | o |
name | String | body | New model name. | x |
description | String | path | New model description. | x |
Exampleβ
Example Request
curl -X PATCH -H "Content-Type: application/json" -d '
{
"name": "new_name",
"description": "new_description"
}' http://127.0.0.1:32080/api/v1/registered-model/example_name
Example Response
{
"attributes" : {},
"code" : 200,
"message" : "Update the registered model instance",
"result" : null,
"status" : "OK",
"success" : true
}
Delete a registered modelβ
DELETE /api/v1/registered-model/{name}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | path | registered model name. | o |
Exampleβ
Example Request
curl -X DELETE http://127.0.0.1:32080/api/v1/registered-model/example_name
Example Response
{
"attributes" : {},
"code" : 200,
"message" : "Delete the registered model instance",
"result" : null,
"status" : "OK",
"success" : true
}
Create a registered model tagβ
POST /api/v1/registered-model/tag?name={name}&tag={tag}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | query | registered model name. | o |
tag | String | query | Add a tag for the registered model. | o |
Exampleβ
Example Request
curl -X POST http://127.0.0.1:32080/api/v1/registered-model/tag?name=example_name&tag=example_tag
Example Response
{
"status":"OK",
"code":200,
"success":true,
"message":"Create a registered model tag instance",
"result":null,
"attributes":{}
}
Delete a registered model tagβ
DELETE /api/v1/registered-model/tag?name={name}&tag={tag}
Parametersβ
Field Name | Type | In | Description | Required |
---|---|---|---|---|
name | String | query | registered model name. | o |
tag | String | query | Delete a tag in the registered model. | o |
Exampleβ
Example Request
curl -X DELETE http://127.0.0.1:32080/api/v1/registered-model/tag?name=example_name&tag=example_tag
Example Response
{
"attributes" : {},
"code" : 200,
"message" : "Delete a registered model tag instance",
"result" : null,
"status" : "OK",
"success" : true
}