|
|
@@ -10,16 +10,16 @@ import (
|
|
|
// curl -X GET "http://localhost:31000/example/version"
|
|
|
|
|
|
// Configuration
|
|
|
-// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test", "value":"test-value"}' "http://localhost:31000/example/v1/configuration/create"
|
|
|
-// curl -X GET "http://localhost:31000/example/v1/configuration/values?scope=global&group=test&pageNo=1&pageSize=1"
|
|
|
-// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test"}' "http://localhost:31000/example/v1/configuration/delete"
|
|
|
+// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test", "value":"test-value"}' "http://localhost:31000/example/configuration/create"
|
|
|
+// curl -X GET "http://localhost:31000/example/configuration/values?scope=global&group=test&pageNo=1&pageSize=1"
|
|
|
+// curl -X POST -H "Content-Type: application/json" -d '{"scope": "global", "group":"test"}' "http://localhost:31000/example/configuration/delete"
|
|
|
|
|
|
// Class
|
|
|
// curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "studentNum": 10}' "http://localhost:31000/example/v1/class/create"
|
|
|
-// curl -X PUT -H "Content-Type: application/json" -d '{"id":"3ca731da91cc42c9b9f413c1b493133d", "name":"test-new"}' "http://localhost:31000/example/v1/class/update"
|
|
|
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"ed3f9cffdcfe4984ac72425b447b7ce6", "name":"test-new"}' "http://localhost:31000/example/v1/class/update"
|
|
|
// curl -X GET "http://localhost:31000/example/v1/class/query?name=test-new&pageNo=1&pageSize=1"
|
|
|
-// curl -X GET "http://localhost:31000/example/v1/class/get?id=3ca731da91cc42c9b9f413c1b493133d"
|
|
|
-// curl -X DELETE "http://localhost:31000/example/v1/class/3ca731da91cc42c9b9f413c1b493133d/delete"
|
|
|
+// curl -X GET "http://localhost:31000/example/v1/class/get?id=ed3f9cffdcfe4984ac72425b447b7ce6"
|
|
|
+// curl -X DELETE "http://localhost:31000/example/v1/class/ed3f9cffdcfe4984ac72425b447b7ce6/delete"
|
|
|
|
|
|
// Student
|
|
|
// curl -X POST -H "Content-Type: application/json" -d '{"name":"test"}' "http://localhost:31000/example/v1/student/create"
|