POST api/Bas/CreateStudent
Request Information
URI Parameters
None.
Body Parameters
CreateStudentCommandName | Description | Type | Additional information |
---|---|---|---|
StudentName | string |
Required |
|
StudentCode | string |
Required |
|
IdNo | string |
None. |
|
Phone | string |
None. |
|
Nation | integer |
None. |
|
Gender | integer |
None. |
|
LoginName | string |
None. |
|
LoginPwd | string |
None. |
|
ClassId | string |
Required |
|
IsThree | integer |
None. |
|
IsBorrow | integer |
None. |
|
IsSpecia | integer |
None. |
|
IsScience | integer |
None. |
|
IsForeign | integer |
None. |
|
Status | integer |
None. |
|
DispOrder | integer |
None. |
|
ExecutionResult | ServiceResult |
None. |
Request Formats
application/json, text/json
Sample:
{ "StudentName": "sample string 1", "StudentCode": "sample string 2", "IdNo": "sample string 3", "Phone": "sample string 4", "Nation": 5, "Gender": 6, "LoginName": "sample string 7", "LoginPwd": "sample string 8", "ClassId": "sample string 9", "IsThree": 10, "IsBorrow": 11, "IsSpecia": 12, "IsScience": 13, "IsForeign": 14, "Status": 15, "DispOrder": 16, "ExecutionResult": { "RetCode": 1, "Msg": "sample string 2", "Result": {} } }
text/xml
Sample:
<CreateStudentCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Bas.Commands"> <ClassId>sample string 9</ClassId> <DispOrder>16</DispOrder> <ExecutionResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking"> <d2p1:Msg>sample string 2</d2p1:Msg> <d2p1:Result /> <d2p1:RetCode>1</d2p1:RetCode> </ExecutionResult> <Gender>6</Gender> <IdNo>sample string 3</IdNo> <IsBorrow>11</IsBorrow> <IsForeign>14</IsForeign> <IsScience>13</IsScience> <IsSpecia>12</IsSpecia> <IsThree>10</IsThree> <LoginName>sample string 7</LoginName> <LoginPwd>sample string 8</LoginPwd> <Nation>5</Nation> <Phone>sample string 4</Phone> <Status>15</Status> <StudentCode>sample string 2</StudentCode> <StudentName>sample string 1</StudentName> </CreateStudentCommand>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServiceResultName | Description | Type | Additional information |
---|---|---|---|
RetCode | integer |
None. |
|
Msg | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "RetCode": 1, "Msg": "sample string 2", "Result": {} }
text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking"> <Msg>sample string 2</Msg> <Result /> <RetCode>1</RetCode> </ServiceResult>