获取职位地址列表
最后更新于 2024/04/03 阅读数 35
获取职位地址列表。 注意:可用于职位列表接口查询用的id是locationRows
里的id,因为同一个北京市下可能会有多个办公地址,用右边的接口举例,需要查询北京市下的职位,需要给职位接口传locationIds:[445, 446]
HTTP请求
GET https://api.mokahr.com/api-platform/v1/jobs-groupedby-location/{orgId}
请求URL参数
字段 | 必填 | 类型 | 描述 |
---|---|---|---|
orgId | 是 | string | 组织id |
请求query
字段 | 必填 | 类型 | 描述 |
---|---|---|---|
mode | 是 | string | 招聘模式 |
返回
返回body的JSON数据如下:
字段 | 字段类型 | 描述 |
---|---|---|
jobs | array | |
jobs.id | string | 省份id |
jobs.label | string | 省份名字 |
jobs.locationRows | object | |
jobs.locationRows.id | integer | 办公地点列表id |
jobs.locationRows.cityId | integer | 城市id |
jobs.labelCityId | string | 城市标签id |
jobs.jobCount | integer | 该地址下所有职位的总数 |
请求样例
curl --location --request GET 'https://api.mokahr.com/api-platform/v1/jobs-groupedby-location/orgid-test?mode=social' \
--header 'Authorization: Basic aHRuYlJq*********3J6RWNLd3FWR0Q3dUw6'
1
2
plaintext2
返回样例
{ "jobs": [ { "id": "北京市", "label": "北京市", "locationRows": [ { "id": 445, "cityId": 110000 }, { "id": 446, "cityId": 110105 } ], "jobCount": 2 }, { "id": "上海市", "label": "上海市", "locationRows": [ { "id": 398, "cityId": 310000 } ], "jobCount": 1 }, { "id": "其他", "label": "其他", "cityId": null, "locationRows": [ { "id": 377, "cityId": null } ], "jobCount": 6 }, { "id": "阿尔巴尼亚", "label": "阿尔巴尼亚", "cityId": null, "locationRows": [ { "id": 2061, "cityId": null } ], "jobCount": 1 } ] }
1
plaintext评价这篇文档
有帮助
没帮助
未能解决您的问题?请联系
在线客服