Grid Gateway Rest API¶
All HTTP/HTTPS endpoints will be detailed in this document.
Register grid node¶
URL :
/joinDescription : register new grid node into grid network.
Method :
POSTContent-Type : application/json
Auth required : NO (can be changed)
Request Body:¶
{
"node-id" : "node_id",
"node-address" : "http://nodeaddress.com"
}
Status Code: 200 OK¶
{
"message": "Successfully Connected!"
}
Status Code: 400 Bad Request¶
{
"message": "Invalid json."
}
Status Code: 409 Conflict¶
{
"message": "This ID has already been registered."
}
Connected grid nodes¶
URL :
/connected-nodesDescription : Return a list with connected grid nodes.
Method :
GETAuth required : NO (can be changed)
Status Code: 200 OK¶
{
"grid-nodes": ["node1", "node2", "node3"]
}
Choose nodes to host encrypted models¶
URL :
/choose-encrypted-model-hostDescription: Return a list of tuples of available nodes to host
encrypted model.
| Method : GET
| Auth required : NO (can be changed)
[ ["node_id1", "node_address1"], ["node_id2", "node_address2"], ["node_id3", "node_address3"]]
Choose host to non-encrypted model¶
URL :
/choose-model-hostDescription: Return a list of tuples of available nodes to host
non-encrypted model.
| Method : GET
| Auth required : NO (can be changed)
[ ["node_id1", "node_address"], ["node_id2", "node_address2"] ]
Search encrypted model¶
URL :
/search-encrypted-modelDescription : Search encrypted model on grid network.
Method :
POSTContent-Type : application/json
Auth required : NO (can be changed)
Request Body¶
{
"model_id" : "model_id"
}
Status Code: 200 OK¶
{
"<node_id>": "<node_address>",
"nodes" : {
"workers": [["workerid1", "workeraddress1"], ["workerid2","workeraddress2"]],
"crypto_provider" : ["crypto_providerid", "crypto_provideraddress"]
}
}
Status Code: 400 Bad Request¶
{
"message": "Invalid json fields."
}
Search Model¶
URL :
/search-modelDescription : Search non-encrypted model on grid network.
Method :
POSTContent-Type : application/json
Auth required : NO (can be changed)
[["model_id1", "model_address1"], ["model_id2", "model_address2"], ["model_id3", "model_address3"]]
{
"message": "Invalid json fields."
}
[ ["node_id1", "node_address"], ["node_id2", "node_address2"] ]
Search available models¶
URL :
/search-available-modelsDescription : Get available models on the grid network.
Method :
GETAuth required : NO (can be changed)
[ "model_id1", "model_id2", "model_id3" ]
Search available tags¶
URL :
/search-available-tagsDescription : Get all available tensor tags on the grid network.
Method :
GETAuth required : NO (can be changed)
[ "#tensor_tag1", "#tensor_tag2", "#tensor_tag3" ]
Search Tags¶
URL :
/searchDescription : Search specific tags on grid network.
Method :
POSTContent-Type : application/json Auth required : NO (can be
changed)