POST api/LMSApi/EnrollPost
Request Information
URI Parameters
None.
Body Parameters
EnrollmentName | Description | Type | Additional information |
---|---|---|---|
CourseId | globally unique identifier |
None. |
|
GroupId | globally unique identifier |
None. |
|
EnrollmentId | globally unique identifier |
None. |
|
StudentId | globally unique identifier |
None. |
|
StudentKey | string |
None. |
|
GroupName | string |
None. |
|
Name | string |
None. |
|
Surname | string |
None. |
|
Username | string |
None. |
|
IdentityNo | string |
None. |
|
UserPass | string |
None. |
|
string |
None. |
||
Gender | string |
None. |
|
BirthDate | date |
None. |
|
StudentNo | string |
None. |
|
EnrollKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CourseId": "f617255c-ff2d-4d32-bae4-ae5aa0a8bc3a", "GroupId": "308917a0-5e70-473a-9472-811ba73366c8", "EnrollmentId": "6ad919b3-e95c-4c8b-a7f2-50bbd18a9bdf", "StudentId": "11d8ce7d-24f0-4d6f-998a-997cfc6d4870", "StudentKey": "sample string 4", "GroupName": "sample string 5", "Name": "sample string 6", "Surname": "sample string 7", "Username": "sample string 8", "IdentityNo": "sample string 9", "UserPass": "sample string 10", "Email": "sample string 11", "Gender": "sample string 12", "BirthDate": "2024-05-19T01:56:00.0081297+03:00", "StudentNo": "sample string 13", "EnrollKey": "sample string 14" }
text/html
Sample:
{"CourseId":"f617255c-ff2d-4d32-bae4-ae5aa0a8bc3a","GroupId":"308917a0-5e70-473a-9472-811ba73366c8","EnrollmentId":"6ad919b3-e95c-4c8b-a7f2-50bbd18a9bdf","StudentId":"11d8ce7d-24f0-4d6f-998a-997cfc6d4870","StudentKey":"sample string 4","GroupName":"sample string 5","Name":"sample string 6","Surname":"sample string 7","Username":"sample string 8","IdentityNo":"sample string 9","UserPass":"sample string 10","Email":"sample string 11","Gender":"sample string 12","BirthDate":"2024-05-19T01:56:00.0081297+03:00","StudentNo":"sample string 13","EnrollKey":"sample string 14"}
application/xml, text/xml
Sample:
<Enrollment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WheLMS.WebApi.Models"> <BirthDate>2024-05-19T01:56:00.0081297+03:00</BirthDate> <CourseId>f617255c-ff2d-4d32-bae4-ae5aa0a8bc3a</CourseId> <Email>sample string 11</Email> <EnrollKey>sample string 14</EnrollKey> <EnrollmentId>6ad919b3-e95c-4c8b-a7f2-50bbd18a9bdf</EnrollmentId> <Gender>sample string 12</Gender> <GroupId>308917a0-5e70-473a-9472-811ba73366c8</GroupId> <GroupName>sample string 5</GroupName> <IdentityNo>sample string 9</IdentityNo> <Name>sample string 6</Name> <StudentId>11d8ce7d-24f0-4d6f-998a-997cfc6d4870</StudentId> <StudentKey>sample string 4</StudentKey> <StudentNo>sample string 13</StudentNo> <Surname>sample string 7</Surname> <UserPass>sample string 10</UserPass> <Username>sample string 8</Username> </Enrollment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EnrollResultName | Description | Type | Additional information |
---|---|---|---|
Enrollled | boolean |
None. |
|
Description | string |
None. |
|
Hata | Exception |
None. |
|
CourseId | globally unique identifier |
None. |
|
GroupId | globally unique identifier |
None. |
|
GroupStatus | integer |
None. |
|
StudentId | globally unique identifier |
None. |
|
StudentStatus | integer |
None. |
|
EnrollmentId | globally unique identifier |
None. |
|
EnrollStatus | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Enrollled": true, "Description": "sample string 2", "Hata": { "ClassName": "System.Exception", "Message": null, "Data": null, "InnerException": null, "HelpURL": "sample string 1", "StackTraceString": null, "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": null, "HResult": 3, "Source": "sample string 2", "WatsonBuckets": null }, "CourseId": "a4e024e5-464d-4e37-9120-445a21413030", "GroupId": "5d7ee217-9440-43e1-b5e4-ab8d1757af4a", "GroupStatus": 1, "StudentId": "d31a1e26-4b9d-4365-a394-166272b81d1a", "StudentStatus": 1, "EnrollmentId": "b749e275-caf9-4658-8053-0ff09d2198bc", "EnrollStatus": 1 }
text/html
Sample:
{"Enrollled":true,"Description":"sample string 2","Hata":{"ClassName":"System.Exception","Message":null,"Data":null,"InnerException":null,"HelpURL":"sample string 1","StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":3,"Source":"sample string 2","WatsonBuckets":null},"CourseId":"a4e024e5-464d-4e37-9120-445a21413030","GroupId":"5d7ee217-9440-43e1-b5e4-ab8d1757af4a","GroupStatus":1,"StudentId":"d31a1e26-4b9d-4365-a394-166272b81d1a","StudentStatus":1,"EnrollmentId":"b749e275-caf9-4658-8053-0ff09d2198bc","EnrollStatus":1}
application/xml, text/xml
Sample:
<EnrollResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WheLMS.WebApi.Models"> <CourseId>a4e024e5-464d-4e37-9120-445a21413030</CourseId> <Description>sample string 2</Description> <EnrollStatus>1</EnrollStatus> <Enrollled>true</Enrollled> <EnrollmentId>b749e275-caf9-4658-8053-0ff09d2198bc</EnrollmentId> <GroupId>5d7ee217-9440-43e1-b5e4-ab8d1757af4a</GroupId> <GroupStatus>1</GroupStatus> <Hata xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName> <Message i:nil="true" xmlns="" /> <Data i:nil="true" xmlns="" /> <InnerException i:nil="true" xmlns="" /> <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL> <StackTraceString i:nil="true" xmlns="" /> <RemoteStackTraceString i:nil="true" xmlns="" /> <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex> <ExceptionMethod i:nil="true" xmlns="" /> <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult> <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source> <WatsonBuckets i:nil="true" xmlns="" /> </Hata> <StudentId>d31a1e26-4b9d-4365-a394-166272b81d1a</StudentId> <StudentStatus>1</StudentStatus> </EnrollResult>