|
|
@@ -16,10 +16,10 @@ import (
|
|
|
|
|
|
// Class
|
|
|
// curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "studentNum": 10}' "http://localhost:31000/example/api/v1/class/create"
|
|
|
-// curl -X PUT -H "Content-Type: application/json" -d '{"id":"2a20e30977f84fc9a9cd198523c4f4b8", "name":"test-new"}' "http://localhost:31000/example/api/v1/class/update"
|
|
|
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"e25bd84b39c241a291c39d73c22e9bfe", "name":"test-new"}' "http://localhost:31000/example/api/v1/class/update"
|
|
|
// curl -X GET "http://localhost:31000/example/api/v1/class/query?name=test-new&pageNo=1&pageSize=1"
|
|
|
-// curl -X GET "http://localhost:31000/example/api/v1/class/get?id=2a20e30977f84fc9a9cd198523c4f4b8"
|
|
|
-// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=2a20e30977f84fc9a9cd198523c4f4b8"
|
|
|
+// curl -X GET "http://localhost:31000/example/api/v1/class/get?id=2bc2860617584610b0c7a79ed1b45d61"
|
|
|
+// curl -X DELETE "http://localhost:31000/example/api/v1/class/delete?id=e25bd84b39c241a291c39d73c22e9bfe"
|
|
|
|
|
|
// Student
|
|
|
// curl -X POST -H "Content-Type: application/json" -d '{"name":"test"}' "http://localhost:31000/example/api/v1/student/create"
|