blob: 3f41047b95f9033ad9279270229608fc5ef3f940 [file] [log] [blame]
giofc441e32024-11-11 16:26:14 +04001POST http://localhost:8080/api/dodo-app
2Content-Type: application/json
3
4{
5 "id": "canvas",
6 "sshPrivateKey": "",
7 "config": {
8 "service": [{
gioc555e0a2025-04-17 11:03:45 +04009 "name": "c1",
giofc441e32024-11-11 16:26:14 +040010 "type": "golang:1.24.0",
11 "source": {
12 "repository": "https://code.v1.dodo.cloud/pcloud",
giof55ab362025-04-11 17:48:17 +040013 "branch": "main",
gioc555e0a2025-04-17 11:03:45 +040014 "rootDir": "apps/canvas/server"
giofc441e32024-11-11 16:26:14 +040015 },
giof55ab362025-04-11 17:48:17 +040016 "ports": [{
gioc555e0a2025-04-17 11:03:45 +040017 "name": "web",
18 "value": 8080
giof55ab362025-04-11 17:48:17 +040019 }],
gioc555e0a2025-04-17 11:03:45 +040020 "ingress": [{
21 "network": "private",
22 "subdomain": "c1",
23 "port": { "name": "web" }
24 }],
25 "dev": {
26 "enabled": true,
27 "username": "gio"
28 }
29 }, {
30 "name": "c2",
31 "type": "golang:1.24.0",
32 "source": {
33 "repository": "https://code.v1.dodo.cloud/pcloud",
34 "branch": "main",
35 "rootDir": "apps/canvas/server"
36 },
37 "ports": [{
38 "name": "web",
39 "value": 8080
40 }],
41 "ingress": [{
42 "network": "private",
43 "subdomain": "c2",
44 "port": { "name": "web" }
45 }],
46 "dev": {
47 "enabled": true,
48 "username": "gio"
49 }
50 }]
giofc441e32024-11-11 16:26:14 +040051 }
52}