POST api/Gadget/AddGadgetDetails
Request Information
URI Parameters
None.
Body Parameters
GadgetDetailsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Policyno | string |
None. |
|
| Name | string |
None. |
|
| SumInsured | decimal number |
None. |
|
| Premium | decimal number |
None. |
|
| IMEINumber | string |
None. |
|
| GadgetType | string |
None. |
|
| Serialnumber | string |
None. |
|
| PremiumRate | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Policyno": "sample string 1",
"Name": "sample string 2",
"SumInsured": 3.0,
"Premium": 4.0,
"IMEINumber": "sample string 5",
"GadgetType": "sample string 6",
"Serialnumber": "sample string 7",
"PremiumRate": 8.0
}
application/xml, text/xml
Sample:
<GadgetDetailsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CHICoreRestAPI.Core.Models.Gadget"> <GadgetType>sample string 6</GadgetType> <IMEINumber>sample string 5</IMEINumber> <Name>sample string 2</Name> <Policyno>sample string 1</Policyno> <Premium>4</Premium> <PremiumRate>8</PremiumRate> <Serialnumber>sample string 7</Serialnumber> <SumInsured>3</SumInsured> </GadgetDetailsRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
GadgetDetailsResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful | boolean |
None. |
|
| PolicyNo | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"PolicyNo": "sample string 2",
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<GadgetDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CHICoreRestAPI.Core.Models.Gadget"> <IsSuccessful>true</IsSuccessful> <Message>sample string 3</Message> <PolicyNo>sample string 2</PolicyNo> </GadgetDetailsResponse>