跳到主要内容
版本:v2

历史纪年搜索支持分页

接口地址:/epoch

请求方式:GET

响应数据类型:application/json

接口描述:

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
Authorization授权请求头headertruestring
q要搜索的字/词,如果传了这个参数会导致其它参数失效,如果要传其它条件参数请不要传这个参数queryfalsestring
size页的大小queryfalseinteger(int32)
page页码queryfalseinteger(int32)
adLunarYear公元农历年份queryfalsestring
ganzhi干支queryfalsestring
period时期queryfalsestring
dynasty朝代queryfalsestring
diHao帝号queryfalsestring
emperor帝名queryfalsestring
nianHao年号queryfalsestring
years年号queryfalsestring
x-jd-device设备信息headerfalsestring

响应状态:

状态码说明schema
200OKobject

响应参数:

参数名称参数说明类型schema
totalPagesinteger(int32)integer(int32)
totalElementsinteger(int64)integer(int64)
sizeinteger(int32)integer(int32)
contentarrayobject
  adLunarYearstring
  ganzhistring
  periodstring
  dynastystring
  diHaostring
  emperorstring
  yearsstring
  countrystring
  nianHaostring
  nianHao1string
  nianHao2string
  sortinteger(int64)
  idinteger(int64)
numberinteger(int32)integer(int32)
firstboolean
lastboolean
numberOfElementsinteger(int32)integer(int32)
pageableobject
  offsetinteger(int64)
  pageNumberinteger(int32)
  pageSizeinteger(int32)
  unpagedboolean
  pagedboolean
emptyboolean

响应示例:

{
"totalPages": 0,
"totalElements": 0,
"size": 0,
"content": [
{
"adLunarYear": "",
"ganzhi": "",
"period": "",
"dynasty": "",
"diHao": "",
"emperor": "",
"years": "",
"country": "",
"nianHao": "",
"nianHao1": "",
"nianHao2": "",
"sort": 0,
"id": 0
}
],
"number": 0,
"first": true,
"last": true,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"unpaged": true,
"paged": true
},
"empty": true
}