POST api/SainikAwards
Request Information
URI Parameters
None.
Body Parameters
AwardTypesModels| Name | Description | Type | Additional information |
|---|---|---|---|
| GallentryAwards | Collection of AwardModels |
None. |
|
| NonGallentryAwards | Collection of AwardModels |
None. |
|
| SR_Id | integer |
None. |
|
| SA_Id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"GallentryAwards": [
{
"Award_Id": 1,
"Award_Name": "sample string 1",
"Award_Type": "sample string 2",
"IsSelected": true,
"AwardCount": 1,
"SA_Id": 1,
"orderBy": 1
},
{
"Award_Id": 1,
"Award_Name": "sample string 1",
"Award_Type": "sample string 2",
"IsSelected": true,
"AwardCount": 1,
"SA_Id": 1,
"orderBy": 1
}
],
"NonGallentryAwards": [
{
"Award_Id": 1,
"Award_Name": "sample string 1",
"Award_Type": "sample string 2",
"IsSelected": true,
"AwardCount": 1,
"SA_Id": 1,
"orderBy": 1
},
{
"Award_Id": 1,
"Award_Name": "sample string 1",
"Award_Type": "sample string 2",
"IsSelected": true,
"AwardCount": 1,
"SA_Id": 1,
"orderBy": 1
}
],
"SR_Id": 1,
"SA_Id": 2
}
application/xml, text/xml
Sample:
<AwardTypesModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SainikWebApi.Models">
<GallentryAwards>
<AwardModels>
<AwardCount>1</AwardCount>
<Award_Id>1</Award_Id>
<Award_Name>sample string 1</Award_Name>
<Award_Type>sample string 2</Award_Type>
<IsSelected>true</IsSelected>
<SA_Id>1</SA_Id>
<orderBy>1</orderBy>
</AwardModels>
<AwardModels>
<AwardCount>1</AwardCount>
<Award_Id>1</Award_Id>
<Award_Name>sample string 1</Award_Name>
<Award_Type>sample string 2</Award_Type>
<IsSelected>true</IsSelected>
<SA_Id>1</SA_Id>
<orderBy>1</orderBy>
</AwardModels>
</GallentryAwards>
<NonGallentryAwards>
<AwardModels>
<AwardCount>1</AwardCount>
<Award_Id>1</Award_Id>
<Award_Name>sample string 1</Award_Name>
<Award_Type>sample string 2</Award_Type>
<IsSelected>true</IsSelected>
<SA_Id>1</SA_Id>
<orderBy>1</orderBy>
</AwardModels>
<AwardModels>
<AwardCount>1</AwardCount>
<Award_Id>1</Award_Id>
<Award_Name>sample string 1</Award_Name>
<Award_Type>sample string 2</Award_Type>
<IsSelected>true</IsSelected>
<SA_Id>1</SA_Id>
<orderBy>1</orderBy>
</AwardModels>
</NonGallentryAwards>
<SA_Id>2</SA_Id>
<SR_Id>1</SR_Id>
</AwardTypesModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.