mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -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 '{
|
||||
|
||||
@@ -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 '{
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
@@ -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 '{
|
||||
|
||||
@@ -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 '{
|
||||
|
||||
@@ -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 '{
|
||||
|
||||
@@ -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 '{
|
||||
|
||||
Reference in New Issue
Block a user