mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 14:35:07 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
@@ -11,10 +11,10 @@ func CreateArecord() {
|
|||||||
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := dbService.Create(&db.CreateRequest{
|
rsp, err := dbService.Create(&db.CreateRequest{
|
||||||
Record: map[string]interface{}{
|
Record: map[string]interface{}{
|
||||||
|
"id": "1",
|
||||||
"name": "Jane",
|
"name": "Jane",
|
||||||
"age": 42,
|
"age": 42,
|
||||||
"isActive": true,
|
"isActive": true,
|
||||||
"id": "1",
|
|
||||||
},
|
},
|
||||||
Table: "users",
|
Table: "users",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,5 +5,6 @@ curl "https://api.m3o.com/v1/function/Deploy" \
|
|||||||
"entrypoint": "helloworld",
|
"entrypoint": "helloworld",
|
||||||
"name": "my-first-func",
|
"name": "my-first-func",
|
||||||
"project": "tests",
|
"project": "tests",
|
||||||
"repo": "github.com/m3o/nodejs-function-example"
|
"repo": "github.com/m3o/nodejs-function-example",
|
||||||
|
"runtime": "nodejs14"
|
||||||
}'
|
}'
|
||||||
@@ -14,6 +14,7 @@ func DeployAfunction() {
|
|||||||
Name: "my-first-func",
|
Name: "my-first-func",
|
||||||
Project: "tests",
|
Project: "tests",
|
||||||
Repo: "github.com/m3o/nodejs-function-example",
|
Repo: "github.com/m3o/nodejs-function-example",
|
||||||
|
Runtime: "nodejs14",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ async function DeployAfunction() {
|
|||||||
name: "my-first-func",
|
name: "my-first-func",
|
||||||
project: "tests",
|
project: "tests",
|
||||||
repo: "github.com/m3o/nodejs-function-example",
|
repo: "github.com/m3o/nodejs-function-example",
|
||||||
|
runtime: "nodejs14",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user