POST api/Manage/SaveExam
Request Information
URI Parameters
None.
Body Parameters
ExamRequestName | Description | Type | Additional information |
---|---|---|---|
sortList | Collection of QuestionType |
None. |
|
Id | integer |
None. |
|
STitle | string |
None. |
|
DeptId | Collection of integer |
None. |
|
DeptName | string |
None. |
|
AddEmpDatas | Collection of AddEmpDatasModel |
None. |
|
DelEmpDatas | Collection of integer |
None. |
|
StartTime | date |
None. |
|
EndTime | date |
None. |
|
UseTime | integer |
None. |
|
Count0 | integer |
None. |
|
Core0 | integer |
None. |
|
Count1 | integer |
None. |
|
Core1 | integer |
None. |
|
Count2 | integer |
None. |
|
Core2 | integer |
None. |
|
Count3 | integer |
None. |
|
Core3 | integer |
None. |
|
PassCore | integer |
None. |
|
IsEnable | integer |
None. |
|
OpenId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "sortList": [ { "type": "sample string 1", "number": 2, "score": 3, "total": 4 }, { "type": "sample string 1", "number": 2, "score": 3, "total": 4 } ], "Id": 1, "STitle": "sample string 2", "DeptId": [ 1, 2 ], "DeptName": "sample string 3", "AddEmpDatas": [ { "deptId": 1, "emp": [ 1, 2 ] }, { "deptId": 1, "emp": [ 1, 2 ] } ], "DelEmpDatas": [ 1, 2 ], "StartTime": "2024-11-25T16:29:17.628945+08:00", "EndTime": "2024-11-25T16:29:17.6299215+08:00", "UseTime": 1, "Count0": 1, "Core0": 1, "Count1": 1, "Core1": 1, "Count2": 1, "Core2": 1, "Count3": 1, "Core3": 1, "PassCore": 1, "IsEnable": 1, "OpenId": "sample string 4" }
application/xml, text/xml
Sample:
<ExamRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI"> <OpenId>sample string 4</OpenId> <AddEmpDatas> <AddEmpDatasModel> <deptId>1</deptId> <emp xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </emp> </AddEmpDatasModel> <AddEmpDatasModel> <deptId>1</deptId> <emp xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </emp> </AddEmpDatasModel> </AddEmpDatas> <Core0>1</Core0> <Core1>1</Core1> <Core2>1</Core2> <Core3>1</Core3> <Count0>1</Count0> <Count1>1</Count1> <Count2>1</Count2> <Count3>1</Count3> <DelEmpDatas xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </DelEmpDatas> <DeptId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </DeptId> <DeptName>sample string 3</DeptName> <EndTime>2024-11-25T16:29:17.6299215+08:00</EndTime> <Id>1</Id> <IsEnable>1</IsEnable> <PassCore>1</PassCore> <STitle>sample string 2</STitle> <StartTime>2024-11-25T16:29:17.628945+08:00</StartTime> <UseTime>1</UseTime> <sortList> <QuestionType> <number>2</number> <score>3</score> <total>4</total> <type>sample string 1</type> </QuestionType> <QuestionType> <number>2</number> <score>3</score> <total>4</total> <type>sample string 1</type> </QuestionType> </sortList> </ExamRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResponseName | Description | Type | Additional information |
---|---|---|---|
msg | string |
None. |
|
code | integer |
None. |
|
total | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "msg": "sample string 1", "code": 2, "total": 3 }
application/xml, text/xml
Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI"> <code>2</code> <msg>sample string 1</msg> <total>3</total> </BaseResponse>