You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Jasder 6f5f8ce247
FIX generate token bug
5 years ago
.ipynb_checkpoints 所属课程 5 years ago
app FIX generate token bug 5 years ago
bin first commit 6 years ago
config ADD gitea user register and create token api 5 years ago
db ADD gitea_token column to users tables 5 years ago
lib fixbug 5 years ago
public 调整 提的bug 需求 5 years ago
spec 项目列表 5 years ago
test first commit 6 years ago
tmp first commit 6 years ago
vendor admins: help manage 6 years ago
warn 500页面 6 years ago
.gitignore FIX gitignore .bashrc file 5 years ago
.merge_file_a17580 教学案例详情和新建 6 years ago
Gemfile 微信小程序的教师列表api调整 5 years ago
README.md Update api file 5 years ago
Rakefile first commit 6 years ago
bootstrap-datetimepicker.css 调整 5 years ago
config.ru first commit 6 years ago
dump.rdb 多选题的调分 5 years ago

README.md

API文档


基本介绍

开发API服务地址

http://120.27.155.180:3000/

邮箱/密码25012034@qq.com/11111111

Applications

  • iOS Application Id:
f2ac514ff9c4630d9509a5f361362eb52b28e36396bd92cefcdafe8dee1055c5

Secret:

77c88ef325b2c557d8d7699694882ae73876bf1fe18554c119865bddb364c0d8
  • Android

Application Id:

1be5ac17e050d515a11b99bc16c445ab114c8f3513e59175b106bba1f746ea5e

Secret:

ec0bb068cf24a15389a6753da6d52c36c764a13d9913a97d14be6c9c6925255e

API接口


用户注册(通过其他平台)

POST accounts/remote_register

示例

curl -X POST \
-d "email=2123233122@qq.com" \
-d "password=djs_D_00001" \
-d "phone=18816365620" \
-d "platform=forge" \
http://localhost:3000/api/accounts/remote_register  | jq

请求参数说明:

email(requires): 用户邮箱

phone(requires): 手机号

password(requires): 密码

platform(optional):用户来源的相关平台,取值范围['educoder', 'trustie', 'forge'],

返回参数说明:

status: 响应状态码0:请求成功,-1: 请求失败

message: 响应说明

id: 用户id

token: 用户对应token唯一

返回值

{
  "status": 0,
  "message": "success",
  "user": {
    "id": 36400,
    "token": "8c87a80d9cfacc92fcb2451845104f35119eda96"
  }
}