Files
services/function/examples.json
2021-10-26 17:37:40 +01:00

81 lines
1.7 KiB
JSON

{
"deploy": [
{
"title": "Deploy a function",
"request": {
"repo": "github.com/m3o/nodejs-function-example",
"name": "my-first-func",
"entrypoint": "helloworld",
"project": "tests",
"runtime": "nodejs14"
},
"response": {}
}
],
"call": [
{
"title": "Call a function",
"request": {
"name": "my-first-func",
"request": {}
},
"response": {
"response": {
"message": "Hello World!"
}
}
}
],
"list": [
{
"title": "List functions",
"request": {},
"response": {
"functions": [
{
"project": "a",
"name": "test4",
"entrypoint": "helloworld",
"repo": "github.com/m3o/nodejs-function-example",
"subfolder": "",
"runtime": "nodejs14",
"status": "DEPLOY_IN_PROGRESS"
}
]
}
}
],
"delete": [
{
"title": "Delete a function",
"request": {
"project": "tests",
"name": "my-first-func"
},
"response": {}
}
],
"describe": [
{
"title": "Describe function status",
"request": {
"project": "tests",
"name": "my-first-func"
},
"response": {
"function": {
"project": "a",
"name": "test4",
"entrypoint": "helloworld",
"repo": "github.com/m3o/nodejs-function-example",
"subfolder": "",
"runtime": "nodejs14",
"status": "ACTIVE"
},
"updated_at": "2021-10-08T10:17:34.914Z",
"timeout": "60s"
}
}
]
}