Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-03 21:59:46 +00:00
parent db0befe675
commit 340daa09b4
185 changed files with 186 additions and 183 deletions

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Count" \
curl "http://localhost:8080/db/Count" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Create" \
curl "http://localhost:8080/db/Create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

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

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Delete" \
curl "http://localhost:8080/db/Delete" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Read" \
curl "http://localhost:8080/db/Read" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Truncate" \
curl "http://localhost:8080/db/Truncate" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{

View File

@@ -1,4 +1,4 @@
curl "https://api.m3o.com/v1/db/Update" \
curl "http://localhost:8080/db/Update" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{