|
|
@@ -84,8 +84,14 @@ import (
|
|
|
|
|
|
// Query Rule
|
|
|
// curl -X GET "http://localhost:31000/example/api/queryRuleDefinition/get?domainName=Student"
|
|
|
-// curl -X POST -H 'Content-Type: application/json' -d '{"scope": "global", "domainName": "Student", "rule": "[{\"fieldName\": \"Name\", \"fieldType\": \"string\", \"columnName\": \"name\", \"operator\": \"eq\", \"value\": \"test\"}]"}' "http://localhost:31000/example/api/queryRule/create"
|
|
|
-// curl -X POST -H 'Content-Type: application/json' -d '{"scope": "global", "domainName": "Student"}' "http://localhost:31000/example/api/queryRule/get"
|
|
|
+// curl -X POST -H 'Content-Type: application/json' -d '{"scope": "global", "domainName": "Student", "rule": "{\"fieldName\": \"Name\", \"fieldType\": \"string\", \"columnName\": \"name\", \"operator\": \"eq\", \"value\": \"test\"}"}' "http://localhost:31000/example/api/queryRule/create"
|
|
|
+// curl -X POST -H 'Content-Type: application/json' -d '{"scope": "global", "domainName": "Student", "rule": "{\"fieldName\": \"Name\", \"fieldType\": \"string\", \"columnName\": \"name\", \"operator\": \"contains\"}"}' "http://localhost:31000/example/api/queryRule/create"
|
|
|
+// curl -X POST -H 'Content-Type: application/json' -d '{"scope": "global", "domainName": "Student"}' "http://localhost:31000/example/api/queryRule/query"
|
|
|
+// curl -X POST -H 'Content-Type: application/json' -d '{"scope": "global", "domainName": "Student"}' "http://localhost:31000/example/api/queryRule/enabled/get"
|
|
|
+// curl -X POST -H 'Content-Type: application/json' -d '{"id": "7011cde771a045a885872529ab77e79b"}' "http://localhost:31000/example/api/queryRule/enable"
|
|
|
+// curl -X POST -H 'Content-Type: application/json' -d '{"id": "7011cde771a045a885872529ab77e79b"}' "http://localhost:31000/example/api/queryRule/disable"
|
|
|
+// curl -X DELETE "http://localhost:31000/example/api/queryRule/delete?id=7011cde771a045a885872529ab77e79b"
|
|
|
+// curl -X DELETE "http://localhost:31000/example/api/queryRule/delete?id=597ad3bbb97d4b7aa5196cd9366f07f2"
|
|
|
|
|
|
func main() {
|
|
|
application.NewApp()
|