mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 10:54:28 +00:00
196 lines
4.7 KiB
JSON
196 lines
4.7 KiB
JSON
{
|
|
"deploy": [
|
|
{
|
|
"title": "Deploy a function",
|
|
"run_check": false,
|
|
"request": {
|
|
"name": "helloworld",
|
|
"repo": "https://github.com/m3o/m3o",
|
|
"branch": "main",
|
|
"entrypoint": "Helloworld",
|
|
"subfolder": "examples/go-function",
|
|
"runtime": "go116",
|
|
"region": "europe-west1"
|
|
},
|
|
"response": {
|
|
"function": {
|
|
"id": "helloworld",
|
|
"name": "helloworld",
|
|
"repo": "https://github.com/m3o/m3o",
|
|
"branch": "main",
|
|
"entrypoint": "Helloworld",
|
|
"subfolder": "examples/go-function",
|
|
"runtime": "go116",
|
|
"region": "europe-west1",
|
|
"env_vars": {},
|
|
"status": "Deploying",
|
|
"url": "https://helloworld.m3o.sh",
|
|
"created": "2021-12-16T17:27:09.230134479Z",
|
|
"updated": ""
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"update": [
|
|
{
|
|
"title": "Update a function",
|
|
"run_check": false,
|
|
"request": {
|
|
"name": "helloworld"
|
|
},
|
|
"response": {}
|
|
}
|
|
],
|
|
"call": [
|
|
{
|
|
"title": "Call a function",
|
|
"run_check": false,
|
|
"request": {
|
|
"name": "helloworld",
|
|
"request": {
|
|
"name": "Alice"
|
|
}
|
|
},
|
|
"response": {
|
|
"response": {
|
|
"message": "Hello Alice!"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"list": [
|
|
{
|
|
"title": "List functions",
|
|
"run_check": false,
|
|
"request": {},
|
|
"response": {
|
|
"functions": [{
|
|
"id": "helloworld",
|
|
"name": "helloworld",
|
|
"repo": "https://github.com/m3o/m3o",
|
|
"branch": "main",
|
|
"entrypoint": "Helloworld",
|
|
"subfolder": "examples/go-function",
|
|
"runtime": "go116",
|
|
"region": "europe-west1",
|
|
"env_vars": {},
|
|
"status": "Deploying",
|
|
"url": "https://helloworld.m3o.sh",
|
|
"created": "2021-12-16T17:27:09.230134479Z",
|
|
"updated": ""
|
|
}]
|
|
}
|
|
}
|
|
],
|
|
"delete": [
|
|
{
|
|
"title": "Delete a function",
|
|
"run_check": false,
|
|
"request": {
|
|
"name": "helloworld"
|
|
},
|
|
"response": {}
|
|
}
|
|
],
|
|
"describe": [
|
|
{
|
|
"title": "Describe function status",
|
|
"run_check": false,
|
|
"request": {
|
|
"name": "helloworld"
|
|
},
|
|
"response": {
|
|
"function": {
|
|
"id": "helloworld",
|
|
"name": "helloworld",
|
|
"repo": "https://github.com/m3o/m3o",
|
|
"branch": "main",
|
|
"entrypoint": "Helloworld",
|
|
"subfolder": "examples/go-function",
|
|
"runtime": "go116",
|
|
"region": "europe-west1",
|
|
"env_vars": {},
|
|
"status": "Deploying",
|
|
"url": "https://helloworld.m3o.sh",
|
|
"created": "2021-12-16T17:27:09.230134479Z",
|
|
"updated": ""
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"regions": [
|
|
{
|
|
"title": "List regions",
|
|
"run_check": false,
|
|
"request": {},
|
|
"response": {
|
|
"regions": [
|
|
"asia-east1",
|
|
"europe-west1",
|
|
"us-central1",
|
|
"us-east1",
|
|
"us-west1"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"reserve": [
|
|
{
|
|
"title": "Reserve a function",
|
|
"run_check": false,
|
|
"request": {
|
|
"name": "helloworld"
|
|
},
|
|
"response": {
|
|
"reservation": {
|
|
"name": "helloworld",
|
|
"owner": "micro/40e5d9aa-1185-4add-b248-ce4d72ff7947",
|
|
"token": "c580be106204d103df461bb3a3075aefedda5f85",
|
|
"created": "2021-12-16T19:19:29.615737412Z",
|
|
"expires": "2022-12-16T19:19:29.615737502Z"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"runtimes": [
|
|
{
|
|
"title": "List runtimes",
|
|
"run_check": false,
|
|
"request": {},
|
|
"response": {
|
|
"regions": [
|
|
"nodejs16",
|
|
"nodejs14",
|
|
"nodejs12",
|
|
"nodejs10",
|
|
"nodejs8",
|
|
"nodejs6",
|
|
"python39",
|
|
"python38",
|
|
"python37",
|
|
"go116",
|
|
"go113",
|
|
"go111",
|
|
"java11",
|
|
"dotnet3",
|
|
"ruby27",
|
|
"ruby26",
|
|
"php74"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"proxy": [
|
|
{
|
|
"title": "Proxy URL",
|
|
"run_check": false,
|
|
"request": {
|
|
"id": "helloworld"
|
|
},
|
|
"response": {
|
|
"url": "https://europe-west1-m3o-apis.cloudfunctions.net/helloworld"
|
|
}
|
|
}
|
|
]
|
|
}
|