POST api/Course/InsertorUpdateCourse
Request Information
URI Parameters
None.
Body Parameters
CourseName | Description | Type | Additional information |
---|---|---|---|
CourseID | integer |
None. |
|
CourseName | string |
None. |
|
QCode | string |
None. |
|
CreatedBy | string |
None. |
|
UpdatedBy | string |
None. |
|
CreatedDate | string |
None. |
|
UpdatedDate | string |
None. |
|
Active | boolean |
None. |
|
ObjectId | string |
None. |
|
Department | string |
None. |
|
Version | string |
None. |
|
Description | string |
None. |
|
FavCourse | integer |
None. |
|
RevisionDate | string |
None. |
|
CourseType | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CourseID": 1, "CourseName": "sample string 2", "QCode": "sample string 3", "CreatedBy": "sample string 4", "UpdatedBy": "sample string 5", "CreatedDate": "sample string 6", "UpdatedDate": "sample string 7", "Active": true, "ObjectId": "sample string 9", "Department": "sample string 10", "Version": "sample string 11", "Description": "sample string 12", "FavCourse": 13, "RevisionDate": "sample string 14", "CourseType": "sample string 15" }
text/html
Sample:
{"CourseID":1,"CourseName":"sample string 2","QCode":"sample string 3","CreatedBy":"sample string 4","UpdatedBy":"sample string 5","CreatedDate":"sample string 6","UpdatedDate":"sample string 7","Active":true,"ObjectId":"sample string 9","Department":"sample string 10","Version":"sample string 11","Description":"sample string 12","FavCourse":13,"RevisionDate":"sample string 14","CourseType":"sample string 15"}
application/xml, text/xml
Sample:
<Course xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TammaBusinessObjects"> <Active>true</Active> <CourseID>1</CourseID> <CourseName>sample string 2</CourseName> <CourseType>sample string 15</CourseType> <CreatedBy>sample string 4</CreatedBy> <CreatedDate>sample string 6</CreatedDate> <Department>sample string 10</Department> <Description>sample string 12</Description> <FavCourse>13</FavCourse> <ObjectId>sample string 9</ObjectId> <QCode>sample string 3</QCode> <RevisionDate>sample string 14</RevisionDate> <UpdatedBy>sample string 5</UpdatedBy> <UpdatedDate>sample string 7</UpdatedDate> <Version>sample string 11</Version> </Course>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>