文档
测试

获取雷达图片列表

POST
https://www.xm12379.com/apis/image/radar/list

接口描述

获取最新的厦门雷达图片

请求头

参数名
类型
描述
必填
apikey
string
您的授权密钥
必填
content-type
string
application/json
必填

请求参数

参数名
类型
描述
必填
id
string
必须为 图片-厦门雷达图
必填
params
object
数据字典
必填
from
int
示例:0
必填
size
int
示例:1
必填

响应参数

参数名
类型
描述
必填
took
int
示例:3
必填
timed_out
boolean
示例:false
必填
_shards
object
数据字典
必填
total
int
示例:5
必填
successful
int
示例:5
必填
skipped
int
示例:0
必填
failed
int
示例:0
必填
hits
object
数据字典
必填
total
int
示例:1579
必填
max_score
object
示例:null
必填
hits
array
数据列表
必填
_index
string
示例:mp_d_grid_file_idx
必填
_type
string
示例:GridFile
必填
_id
string
示例:958616273
必填
_score
object
示例:null
必填
_source
object
数据字典
必填
timeCode
string
示例:20211114105400
必填
dataCode
string
示例:XM-RADAR-FIGS
必填
element
string
示例:CR_Z9592_MAP
必填
level
string
示例:single
必填
period
string
示例:00000
必填
id
string
示例:958616273
必填
name
string
示例:XM-RADAR-FIGS_20211114105400_CR_Z9592_MAP_single_00000
必填
size
int
示例:611785
必填
extension
string
示例:png
必填
contentType
string
示例:image/png
必填
lastModified
int
示例:1636887908000
必填
path
string
示例:oss:xm-radar-figs/202111/14/CR_Z9592_MAP/single/XM-RADAR-FIGS_20211114105400_CR_Z9592_MAP_single_00000.png
必填
createAt
string
示例:2021-11-14 19:05:09
必填
sort
array
数据列表
必填

说明 / 示例

## 请求头说明 id必须为 图片-厦门雷达图 ## 请求参数说明 支持使用from和size来对结果进行限制。返回结果按照图片发布的时间倒序排列。 ```json { "id":"图片-厦门雷达图", "params":{ "from":0, "size":1 } } ``` ## 返回结果下载说明 下载文件使用格点数据下载接口,其中的文件id参数为本结果中返回的id,如本接口返回结果如下: ```json { "took": 3, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 1579, "max_score": null, "hits": [ { "_index": "mp_d_grid_file_idx", "_type": "GridFile", "_id": "958616273", "_score": null, "_source": { "timeCode": "20211114105400", "dataCode": "XM-RADAR-FIGS", "element": "CR_Z9592_MAP", "level": "single", "period": "00000", "id": "958616273", "name": "XM-RADAR-FIGS_20211114105400_CR_Z9592_MAP_single_00000", "size": 611785, "extension": "png", "contentType": "image/png", "lastModified": 1636887908000, "path": "oss:xm-radar-figs/202111/14/CR_Z9592_MAP/single/XM-RADAR-FIGS_20211114105400_CR_Z9592_MAP_single_00000.png", "createAt": "2021-11-14 19:05:09" }, "sort": [ "20211114105400" ] } ] } } ``` 路径 ```hits.hits[n]._source.id```即为下载文件所需要使用的id。