POST api/Search/ZcgwSearch
中船检索(外文)
Request Information
URI Parameters
None.
Body Parameters
ZcgwSearchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| keywords |
关键字 |
string |
None. |
| datatype |
资源类别 |
string |
None. |
| sort |
结果排序方式有两种,相关度和发表时间。缺省为相关度排序。值为空时,相关度排序值为“Year”时,发表时间排序 |
string |
None. |
| keywordTwo |
在结果中检索 |
string |
None. |
| start |
起始年(对方接口不支持,暂时不起作用) |
string |
None. |
| end |
结束年(对方接口不支持,暂时不起作用) |
string |
None. |
| pageIndex |
当前页,缺省为1 |
integer |
None. |
| pageSize |
每页记录数,缺省值为20 |
integer |
None. |
| classifies |
有四种聚类方式即关键词聚类(keywords)、年代聚类(year)、文献类型(dataType)、来源聚类(dbSource)、主题聚类(subject) |
Dictionary of string [key] and string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"keywords": "sample string 1",
"datatype": "sample string 2",
"sort": "sample string 3",
"keywordTwo": "sample string 4",
"start": "sample string 5",
"end": "sample string 6",
"pageIndex": 1,
"pageSize": 1,
"classifies": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
}
application/xml, text/xml
Sample:
<ZcgwSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EKP.WeChatAppApi.Source.Search.Zcgw">
<classifies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</classifies>
<datatype>sample string 2</datatype>
<end>sample string 6</end>
<keywordTwo>sample string 4</keywordTwo>
<keywords>sample string 1</keywords>
<pageIndex>1</pageIndex>
<pageSize>1</pageSize>
<sort>sample string 3</sort>
<start>sample string 5</start>
</ZcgwSearchModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
中船检索(外文)
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
返回码 |
ResultCode |
None. |
| Message |
返回信息 |
string |
None. |
| Data |
返回的数据 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 10000,
"Message": "sample string 1",
"Data": {}
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EKP.WeChatAppApi.Models"> <Code>Success</Code> <Data /> <Message>sample string 1</Message> </ResultModel>