diff --git a/others/API/SOS_API-0.5.html b/others/API/SOS_API-0.5.html index b056d71..cedcb41 100644 --- a/others/API/SOS_API-0.5.html +++ b/others/API/SOS_API-0.5.html @@ -28,8 +28,8 @@
使用access_token获取用户信息, 需要有 ROLE_UNITY 权限
+ +
+ 请求URI: /unity/user_info
GET
+
参数名 | +参数值 | +必须? | +备注 | +
---|---|---|---|
无 | +
+ http://localhost:8080/spring-oauth-server/unity/user_info?access_token=b12cace6-7ce4-4fa8-b127-cf537d15b213
+
+ 正常 [200]
+
+ {"guid":"55b713df1c6f423e842ad68668523c49","archived":false,"username":"unity","phone":"","email":"unity@wdcy.cc","privileges":["UNITY"]}
+
+
+ 异常 [401]
+
+ <oauth><error_description>Invalid access token:
+ 2c612eb7-a22b-45f0-8b2e-cd6f9e3667722</error_description><error>invalid_token</error></oauth>
+
+
使用access_token获取用户信息, 需要有 ROLE_MOBILE 权限
+ +
+ 请求URI: /m/user_info
GET
+
参数名 | +参数值 | +必须? | +备注 | +
---|---|---|---|
无 | +
+ http://localhost:8080/spring-oauth-server/m/user_info?access_token=b12cace6-7ce4-4fa8-b127-cf537d15b213
+
+ 正常 [200]
+
+ {"guid":"612025cb3f964a64a48bbdf77e53c2c1","archived":false,"username":"mobile","phone":"","email":"mobile@wdcy.cc","privileges":["MOBILE"]}
+
+
+ 异常 [401]
+
+ <oauth><error_description>Invalid access token:
+ 2c612eb7-a22b-45f0-8b2e-cd6f9e3667722</error_description><error>invalid_token</error></oauth>
+
+