mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 14:55:16 +00:00
Commit from m3o/m3o action
This commit is contained in:
6
curl/db/count/countEntriesInATable.sh
Executable file
6
curl/db/count/countEntriesInATable.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/db/Count" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"table": "users"
|
||||
}'
|
||||
12
curl/db/create/createARecord.sh
Executable file
12
curl/db/create/createARecord.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
curl "https://api.m3o.com/v1/db/Create" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"record": {
|
||||
"age": 42,
|
||||
"id": "1",
|
||||
"isActive": true,
|
||||
"name": "Jane"
|
||||
},
|
||||
"table": "users"
|
||||
}'
|
||||
7
curl/db/delete/deleteARecord.sh
Executable file
7
curl/db/delete/deleteARecord.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
curl "https://api.m3o.com/v1/db/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "1",
|
||||
"table": "users"
|
||||
}'
|
||||
7
curl/db/read/readRecords.sh
Executable file
7
curl/db/read/readRecords.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
curl "https://api.m3o.com/v1/db/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"query": "age == 43",
|
||||
"table": "users"
|
||||
}'
|
||||
6
curl/db/truncate/truncateTable.sh
Executable file
6
curl/db/truncate/truncateTable.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/db/Truncate" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"table": "users"
|
||||
}'
|
||||
10
curl/db/update/updateARecord.sh
Executable file
10
curl/db/update/updateARecord.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
curl "https://api.m3o.com/v1/db/Update" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"record": {
|
||||
"age": 43,
|
||||
"id": "1"
|
||||
},
|
||||
"table": "users"
|
||||
}'
|
||||
Reference in New Issue
Block a user