|
|
@@ -35,6 +35,13 @@ import (
|
|
|
// curl -X GET "http://localhost:31000/example/v1/family/get?id=8a3af91da12c4a3eb040ffb535693f1a"
|
|
|
// curl -X DELETE "http://localhost:31000/example/v1/family/8a3af91da12c4a3eb040ffb535693f1a/delete"
|
|
|
|
|
|
+// Identity
|
|
|
+// curl -X POST -H "Content-Type: application/json" -d '{"name":"test"}' "http://localhost:31000/example/v1/identity/create"
|
|
|
+// curl -X PUT -H "Content-Type: application/json" -d '{"id":"6e12ee71397746b8920fa94e5f229366", "name":"test-new"}' "http://localhost:31000/example/v1/identity/update"
|
|
|
+// curl -X GET "http://localhost:31000/example/v1/identity/query?name=test-new&pageNo=1&pageSize=1"
|
|
|
+// curl -X GET "http://localhost:31000/example/v1/identity/get?id=6e12ee71397746b8920fa94e5f229366"
|
|
|
+// curl -X DELETE "http://localhost:31000/example/v1/identity/6e12ee71397746b8920fa94e5f229366/delete"
|
|
|
+
|
|
|
// Student-Family
|
|
|
// curl -X POST -H "Content-Type: application/json" -d '{"id":"fc3e96926aac46268ae783c4ad675d43", "familyId": "ed86bbb59a80429eb654d7f9f13ff116"}' "http://localhost:31000/example/v1/student/family/update"
|
|
|
// curl -X GET "http://localhost:31000/example/v1/student/family/query?id=fc3e96926aac46268ae783c4ad675d43"
|
|
|
@@ -45,6 +52,14 @@ import (
|
|
|
// curl -X GET "http://localhost:31000/example/v1/family/student/query?id=ed86bbb59a80429eb654d7f9f13ff116"
|
|
|
// curl -X GET "http://localhost:31000/example/v1/family/student/queryWith?id=ed86bbb59a80429eb654d7f9f13ff116"
|
|
|
|
|
|
+// Student-Identity
|
|
|
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"d21d93c7f189441fac5d27f14fdce13b", "identityIds": ["42b305bb292c4082a3e91a2967fe303c"]}' "http://localhost:31000/example/v1/student/identity/update"
|
|
|
+// curl -X GET "http://localhost:31000/example/v1/student/identity/query?id=d21d93c7f189441fac5d27f14fdce13b"
|
|
|
+
|
|
|
+// Identity-Student
|
|
|
+// curl -X POST -H "Content-Type: application/json" -d '{"id":"42b305bb292c4082a3e91a2967fe303c", "studentIds": ["d21d93c7f189441fac5d27f14fdce13b"]}' "http://localhost:31000/example/v1/identity/student/update"
|
|
|
+// curl -X GET "http://localhost:31000/example/v1/identity/student/query?id=42b305bb292c4082a3e91a2967fe303c"
|
|
|
+
|
|
|
func main() {
|
|
|
application.NewApp()
|
|
|
defer application.DestroyApp()
|