|
|
|
|
|
## 1.1 3rd API 概述
|
|
|
- 3rd API 集成第三方接口数据通过提取、转换成系统需要的格式
|
|
|
- 3rd API 只提供查询转换第三方接口数据后的数据接口
|
|
|
- 查询数据接口: [https://{site}/portal/api/v2/thirdparty/{api_id}?_format=json](https://note.youdao.com/) GET
|
|
|
- 接口根据角色授权
|
|
|
## 1.2.Thirdparty API 查询数据
|
|
|
GET URI 也可以使用系统后台配置的别名
|
|
|
```
|
|
|
GET /portal/api/v2/thirdparty/{api_id}?_format=json HTTP/1.1
|
|
|
Host: portal.xx.edu.com.cn
|
|
|
Authorization: Bearer 39aec9c68b679d43de6803e0f14c223j
|
|
|
|
|
|
{query}={value}&{query_1}={value1}.....
|
|
|
```
|
|
|
|
|
|
## 1.2.1 接口响应数据
|
|
|
|
|
|
|
|
|
```
|
|
|
[
|
|
|
{
|
|
|
//通过提取、转换成门户系统需要的数据形式
|
|
|
}
|
|
|
|
|
|
]
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|