bahasaindo
  1. 后台-课程
bahasaindo
  • 前台-课程
    • 查看所有课程
      POST
    • 查看课程详情
      GET
    • 获取播放授权码
      GET
    • 试卷随机列表
      GET
    • 提交试卷
      POST
  • 前台-会员
    • 登录接口
      POST
    • 查询设备数量
      GET
    • 查询登陆设备列表 
      GET
  • 后台-课程
    • 上传视频
      POST
    • 检查视频是否存在
      GET
    • 保存试卷
      POST
    • 试卷列表
      GET
  • 后台-会员
    • 新增会员
      POST
    • 更新会员
      POST
    • 删除会员
      DELETE
    • 查询登陆设备列表
      GET
    • 删除登陆设备
      DELETE
    • 会员列表
      POST
    • 导出会员列表
      POST
    • 导入会员列表
      POST
  • 后台-用户
    • 获取验证码
      GET
    • 登录
      POST
  1. 后台-课程

保存试卷

正式环境
http://34.150.122.99:9000
正式环境
http://34.150.122.99:9000
POST
http://34.150.122.99:9000
/business/admin/section/exam/save

请求参数

Header 参数
Token
string 
可选
示例值:
yO50wjGe
Body 参数application/json
sectionId
string 
小节ID
必需
questions
array [object {2}] 
题目列表
必需
content
string 
题目内容
必需
questionOptions
array [object {2}] 
选项列表
必需
示例
{
    "sectionId": "WAKUaZ5Z",
    "questions": [
        {
            "content": "你最喜欢吃什么水果?",
            "questionOptions": [
                {
                    "content": "苹果",
                    "answer": 0
                },
                {
                    "content": "香蕉",
                    "answer": 1
                },
                {
                    "content": "橙子",
                    "answer": 0
                },
                {
                    "content": "火龙果",
                    "answer": 0
                }
            ]
        },
        {
            "content": "你的爱好是?",
            "questionOptions": [
                {
                    "content": "上班",
                    "answer": 0
                },
                {
                    "content": "打游戏",
                    "answer": 1
                },
                {
                    "content": "旅游",
                    "answer": 0
                },
                {
                    "content": "听歌",
                    "answer": 0
                }
            ]
        }
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://34.150.122.99:9000/business/admin/section/exam/save' \
--header 'Token: yO50wjGe' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sectionId": "WAKUaZ5Z",
    "questions": [
        {
            "content": "你最喜欢吃什么水果?",
            "questionOptions": [
                {
                    "content": "苹果",
                    "answer": 0
                },
                {
                    "content": "香蕉",
                    "answer": 1
                },
                {
                    "content": "橙子",
                    "answer": 0
                },
                {
                    "content": "火龙果",
                    "answer": 0
                }
            ]
        },
        {
            "content": "你的爱好是?",
            "questionOptions": [
                {
                    "content": "上班",
                    "answer": 0
                },
                {
                    "content": "打游戏",
                    "answer": 1
                },
                {
                    "content": "旅游",
                    "answer": 0
                },
                {
                    "content": "听歌",
                    "answer": 0
                }
            ]
        }
    ]
}'

返回响应

🟢200成功
application/json
Body
success
boolean 
是否成功
必需
code
string 
错误码
必需
message
string 
错误提示
必需
content
null 
必需
示例
{
    "success": true,
    "code": "00000",
    "message": null,
    "content": null
}
修改于 2024-04-25 09:50:02
上一页
检查视频是否存在
下一页
试卷列表
Built with