您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
转到文件
Jasder 1de9265879
ADD get project_categories api
6 年前
.ipynb_checkpoints 所属课程 6 年前
app ADD get project_categories api 6 年前
bin first commit 6 年前
config ADD get project_categories api 6 年前
db ADD model Ignore 6 年前
lib fixbug 6 年前
public ADD model License 6 年前
spec 项目列表 6 年前
test first commit 6 年前
tmp first commit 6 年前
vendor admins: help manage 6 年前
warn 500页面 6 年前
.gitignore FIX gitignore .bashrc file 6 年前
.merge_file_a17580 教学案例详情和新建 6 年前
Gemfile ADD gem 'acts_as_list' 6 年前
README.md Update api file 6 年前
Rakefile first commit 6 年前
bootstrap-datetimepicker.css 调整 6 年前
config.ru first commit 6 年前
dump.rdb 多选题的调分 6 年前

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"
  }
}