96 lines
2.5 KiB
JSON
96 lines
2.5 KiB
JSON
{
|
|
"Version": "1.0.0",
|
|
"Description": "API接口配置文件",
|
|
"CurrentEnvironment": "开发环境",
|
|
"Environments": [
|
|
{
|
|
"Environment": "开发环境",
|
|
"BaseUrl": "http://{IpAddress}",
|
|
"DefaultTimeout": 30,
|
|
"DefaultRetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Description": "开发环境配置"
|
|
}
|
|
],
|
|
"Endpoints": [
|
|
{
|
|
"Name": "GetProSimulationExaminationQueryById",
|
|
"Description": "获取任务书和流程",
|
|
"UrlTemplate": "{BaseUrl}/member/proSimulationExamination/queryById?id={PaperId}",
|
|
"Method": "GET",
|
|
"RequireAuth": true,
|
|
"Timeout": 30,
|
|
"RetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Parameters": []
|
|
},
|
|
{
|
|
"Name": "AddSubmitDetail",
|
|
"Description": "上传考试信息",
|
|
"UrlTemplate": "{BaseUrl}/member/pro/simulationStepRecord/addSubmitDetail",
|
|
"Method": "POST",
|
|
"RequireAuth": true,
|
|
"Timeout": 60,
|
|
"RetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Parameters": []
|
|
},
|
|
{
|
|
"Name": "UploadFileAndParam",
|
|
"Description": "上传文件",
|
|
"UrlTemplate": "{BaseUrl}/member/pro/upload/uploadFileAndParam",
|
|
"Method": "POST",
|
|
"RequireAuth": true,
|
|
"Timeout": 120,
|
|
"RetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Parameters": []
|
|
},
|
|
{
|
|
"Name": "Get3DCourse",
|
|
"Description": "获取三维课程",
|
|
"UrlTemplate": "{BaseUrl}/member/proSimulationCourse/queryByOutId?id={PaperId}",
|
|
"Method": "GET",
|
|
"RequireAuth": true,
|
|
"Timeout": 30,
|
|
"RetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Parameters": []
|
|
},
|
|
{
|
|
"Name": "GetLearningTest",
|
|
"Description": "获取学习试题接口",
|
|
"UrlTemplate": "{BaseUrl}/member/pro/studytask/getOne?id={ExamRoomId}",
|
|
"Method": "GET",
|
|
"RequireAuth": true,
|
|
"Timeout": 30,
|
|
"RetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Parameters": []
|
|
}, {
|
|
"Name": "GetLearningTestIsView",
|
|
"Description": "获取学习试题接口",
|
|
"UrlTemplate": "{BaseUrl}/member/pro/studytask/getOne?id={PaperId}&isView=1",
|
|
"Method": "GET",
|
|
"RequireAuth": true,
|
|
"Timeout": 30,
|
|
"RetryCount": 3,
|
|
"IsEnabled": true,
|
|
"Parameters": []
|
|
}
|
|
],
|
|
"GlobalParameters": [
|
|
{
|
|
"Name": "DefaultTimeout",
|
|
"Value": "30",
|
|
"Description": "默认超时时间(秒)",
|
|
"IsRequired": false
|
|
},
|
|
{
|
|
"Name": "DefaultRetryCount",
|
|
"Value": "3",
|
|
"Description": "默认重试次数",
|
|
"IsRequired": false
|
|
}
|
|
]
|
|
} |