node-api/api.http

28 lines
450 B
Plaintext
Raw Normal View History

2020-07-11 11:04:37 +00:00
POST http://localhost:1323/v1/apps
Content-type: application/json
{
"name": "test_1234",
"ssh_port": 10000,
"http_port": 10001,
"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": 36500,
"http_port": 36501
}
###
PUT http://localhost:1323/v1/apps/test_1234/start
Content-type: application/json