编辑课程
PUT
/courseModule/modify
安全学习-课程管理
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
添加课程
id
integer <int64>
id
courseName
string
课程名称
courseCategoryId
integer <int64>
必需
courseLabel
integer <int32>
课程标签 enum
courseSpecialCategory
integer <int64>
可选
courseDesc
string
课程说明
coursePermissions
integer <int32>
必需
courseContentType
integer <int32>
必需
courseContentFile
integer <int64>
必需
courseContentFileUrl
string
必需
courseAttachmentTime
integer <int32>
必需
示例
{
"id": 0,
"courseName": "string",
"courseCategoryId": 0,
"courseLabel": 0,
"courseSpecialCategory": 0,
"courseDesc": "string",
"coursePermissions": 0,
"courseContentType": 0,
"courseContentFile": 0,
"courseContentFileUrl": "string",
"courseAttachmentTime": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:9000/courseModule/modify' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"courseName": "string",
"courseCategoryId": 0,
"courseLabel": 0,
"courseSpecialCategory": 0,
"courseDesc": "string",
"coursePermissions": 0,
"courseContentType": 0,
"courseContentFile": 0,
"courseContentFileUrl": "string",
"courseAttachmentTime": 0
}'
返回响应
🟢200成功
该响应没有 Body