Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
crufter
2021-10-12 09:40:18 +00:00
parent 7841367210
commit 1caf019cda
4 changed files with 5 additions and 2 deletions

View File

@@ -11,10 +11,10 @@ func CreateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{
"id": "1",
"name": "Jane",
"age": 42,
"isActive": true,
"id": "1",
},
Table: "users",
})

View File

@@ -5,5 +5,6 @@ curl "https://api.m3o.com/v1/function/Deploy" \
"entrypoint": "helloworld",
"name": "my-first-func",
"project": "tests",
"repo": "github.com/m3o/nodejs-function-example"
"repo": "github.com/m3o/nodejs-function-example",
"runtime": "nodejs14"
}'

View File

@@ -14,6 +14,7 @@ func DeployAfunction() {
Name: "my-first-func",
Project: "tests",
Repo: "github.com/m3o/nodejs-function-example",
Runtime: "nodejs14",
})
fmt.Println(rsp, err)
}

View File

@@ -8,6 +8,7 @@ async function DeployAfunction() {
name: "my-first-func",
project: "tests",
repo: "github.com/m3o/nodejs-function-example",
runtime: "nodejs14",
});
console.log(rsp);
}