node-api/api.http

52 lines
782 B
HTTP

POST http://localhost:1323/v1/apps
Content-type: application/json
{
"name": "test_1234",
"ssh_port": 46500,
"http_port": 46501,
"image": "docker.io/rosti/runtime:2020.04-1",
"cpu": 100,
"memory": 128000
}
###
PUT http://localhost:1323/v1/apps/test_1234
Content-type: application/json
{
"ssh_port": 46500,
"http_port": 46501
}
###
PUT http://localhost:1323/v1/apps/test_1234/start
Content-type: application/json
###
PUT http://localhost:1323/v1/apps/test_1234/stop
Content-type: application/json
###
DELETE http://localhost:1323/v1/apps/test_1234
Content-type: application/json
###
GET http://localhost:1323/v1/apps/test_1234/stats
Content-type: application/json
###
GET http://localhost:1323/v1/apps
Content-type: application/json