blob: 4abee5ed5de66fdc93df9043fca2e2f61e191168 [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": [{
9 "name": "app",
10 "type": "golang:1.24.0",
11 "source": {
12 "repository": "https://code.v1.dodo.cloud/pcloud",
giof55ab362025-04-11 17:48:17 +040013 "branch": "main",
14 "rootDir": "apps/echo"
giofc441e32024-11-11 16:26:14 +040015 },
giof55ab362025-04-11 17:48:17 +040016 "ports": [{
17 "name": "echo",
18 "value": 9090
19 }],
20 "expose": [{
21 "network": "Public",
22 "subdomain": "echo",
23 "port": { "name": "echo" }
24 }]
giofc441e32024-11-11 16:26:14 +040025 }],
giof55ab362025-04-11 17:48:17 +040026 "postgresql": [{
27 "name": "pg",
28 "size": "1Gi",
29 "expose": [{
30 "network": "Public",
31 "subdomain": "pg"
32 }]
33 }],
34 "mongodb": [{
35 "name": "mo",
36 "size": "1Gi",
37 "expose": [{
38 "network": "Public",
39 "subdomain": "mo"
40 }]
41 }],
42 "cluster": "zxczxc"
giofc441e32024-11-11 16:26:14 +040043 }
44}