Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 754 Bytes

APIDOC.md

File metadata and controls

58 lines (46 loc) · 754 Bytes

API Doc

HOST: http://39.108.79.110
PORT: 3500

URL Header Method
/api/loginccnu/ POST

POST DATA

{
	"sid": "2016210000", //学号,类型string
	"password": "password" //密码,类型string
}

RESPONSE DATA

成功
STATUS CODE = 200

{
	"name": "string", //名字
	"gender":"string", //性别 男 or 女
	"college": "string" //学院
}

密码错误
STATUS CODE = 401

{
	"msg":"failed"
}

未录入学校系统或发生其他错误
STATUS CODE = 404

{
	"name": "", //均为空字符串
	"gender": "", //
	"college": "" //
}

JSON格式错误 (用于调试)
STATUS CODE = 400

{
	"msg":"JSON FORMAT ERROR"
}