GET api/Session?trainerNTID={trainerNTID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
trainerNTID | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of SessionName | Description | Type | Additional information |
---|---|---|---|
SessionId | integer |
None. |
|
CourseId | integer |
None. |
|
StartDatetime | string |
None. |
|
CloseDatetime | string |
None. |
|
TrainerID | string |
None. |
|
Status | string |
None. |
|
CreatedBy | string |
None. |
|
UpdatedBy | string |
None. |
|
CreatedDate | string |
None. |
|
UpdatedDate | string |
None. |
|
CourseName | string |
None. |
|
QCode | string |
None. |
|
CourseIdList | Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "SessionId": 1, "CourseId": 2, "StartDatetime": "sample string 3", "CloseDatetime": "sample string 4", "TrainerID": "sample string 5", "Status": "sample string 6", "CreatedBy": "sample string 7", "UpdatedBy": "sample string 8", "CreatedDate": "sample string 9", "UpdatedDate": "sample string 10", "CourseName": "sample string 11", "QCode": "sample string 12", "CourseIdList": [ 1, 2 ] }, { "SessionId": 1, "CourseId": 2, "StartDatetime": "sample string 3", "CloseDatetime": "sample string 4", "TrainerID": "sample string 5", "Status": "sample string 6", "CreatedBy": "sample string 7", "UpdatedBy": "sample string 8", "CreatedDate": "sample string 9", "UpdatedDate": "sample string 10", "CourseName": "sample string 11", "QCode": "sample string 12", "CourseIdList": [ 1, 2 ] } ]
text/html
Sample:
[{"SessionId":1,"CourseId":2,"StartDatetime":"sample string 3","CloseDatetime":"sample string 4","TrainerID":"sample string 5","Status":"sample string 6","CreatedBy":"sample string 7","UpdatedBy":"sample string 8","CreatedDate":"sample string 9","UpdatedDate":"sample string 10","CourseName":"sample string 11","QCode":"sample string 12","CourseIdList":[1,2]},{"SessionId":1,"CourseId":2,"StartDatetime":"sample string 3","CloseDatetime":"sample string 4","TrainerID":"sample string 5","Status":"sample string 6","CreatedBy":"sample string 7","UpdatedBy":"sample string 8","CreatedDate":"sample string 9","UpdatedDate":"sample string 10","CourseName":"sample string 11","QCode":"sample string 12","CourseIdList":[1,2]}]
application/xml, text/xml
Sample:
<ArrayOfSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TammaBusinessObjects"> <Session> <CloseDatetime>sample string 4</CloseDatetime> <CourseId>2</CourseId> <CourseIdList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </CourseIdList> <CourseName>sample string 11</CourseName> <CreatedBy>sample string 7</CreatedBy> <CreatedDate>sample string 9</CreatedDate> <QCode>sample string 12</QCode> <SessionId>1</SessionId> <StartDatetime>sample string 3</StartDatetime> <Status>sample string 6</Status> <TrainerID>sample string 5</TrainerID> <UpdatedBy>sample string 8</UpdatedBy> <UpdatedDate>sample string 10</UpdatedDate> </Session> <Session> <CloseDatetime>sample string 4</CloseDatetime> <CourseId>2</CourseId> <CourseIdList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </CourseIdList> <CourseName>sample string 11</CourseName> <CreatedBy>sample string 7</CreatedBy> <CreatedDate>sample string 9</CreatedDate> <QCode>sample string 12</QCode> <SessionId>1</SessionId> <StartDatetime>sample string 3</StartDatetime> <Status>sample string 6</Status> <TrainerID>sample string 5</TrainerID> <UpdatedBy>sample string 8</UpdatedBy> <UpdatedDate>sample string 10</UpdatedDate> </Session> </ArrayOfSession>