Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
/ C8API Public archive

高三八班 API node.JS 重制版

Notifications You must be signed in to change notification settings

clansty/C8API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

高三八班 API node.JS 版

Discontinued

感谢大家对 C8API 的支持。作者已经不再维护本项目,欢迎大家使用更加强大并且活跃更新的 rain15z3/ClassTools-Backend 代替 C8API

作业看板后端 API

获取作业

有两个接口可以获取今天的作业

获取全部作业

GET /api/homework

示例返回数据

{
    "c": "默写逍遥游全文",
    "m": "一节黄皮一节绿皮",
    "e": "完成赢在阅读",
    "p": "这段话是没有意义的,因为写了你也不可能做物理作业",
    "b": "大粉接下去做十页",
    "z": "准备好明天要送的礼物"
}

获取指定学科作业

GET /api/homework/{c|m|e|p|b|z}

示例返回数据

GET /api/homework/b
大粉接下去做十页

设定作业

POST /api/homework

请求体

{
    "c": "默写逍遥游全文",
    "m": "一节黄皮一节绿皮",
    "e": "完成赢在阅读",
    "p": "这段话是没有意义的,因为写了你也不可能做物理作业",
    "b": "大粉接下去做十页",
    "z": "准备好明天要送的礼物"
}

返回

{
    "code": 200
}

能自动确定修改那些作业设置,如果发送如下数据,则物理作业将保持原样

{
    "c": "默写逍遥游全文",
    "m": "一节黄皮一节绿皮",
    "e": "完成赢在阅读",
    "b": "大粉接下去做十页",
    "z": "准备好明天要送的礼物"
}

Releases

No releases published

Packages

No packages published