K12服务体系技术规范 API接口说明

公共-学校列表

URL:/common/school_list

请求方式:GET

Headers:

参数 说明
Authorization access_token访问令牌

参数:

名称 必选 类型 说明
region_id true int 地区id

响应:

名称 类型 说明
status int 状态
msg char 返回信息
stage_name char 学段名称
school_code char 学校编码
school_name char 学校名称

返回的结果示例:

成功返回

{
    "list": [
        {
            "stage_name": "小学",
            "school": [
                {
                    "school_code": "32020001", 
                    "school_name": "无锡市连元街小学"
                }
            ]
        },
        {
            "stage_name": "初中",    
            "school": [
                {
                    "school_code": "32020002",         
                    "school_name": "无锡市辅仁高级中学"
                }
            ]
        },
        {
            "stage_name": "高中",
            "school": [
                {
                    "school_code": "32020003",         
                    "school_name": "无锡市第一中学"
                }
            ]
        }
    ]
}

失败返回:

{
    "status": <ErrorCode>,
    "msg": <ErrorMessage>
}