POST api/Gadget/AddGadgetDetailsArray

Request Information

URI Parameters

None.

Body Parameters

Collection of GadgetDetailsRequest
NameDescriptionTypeAdditional 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
  },
  {
    "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:
<ArrayOfGadgetDetailsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CHICoreRestAPI.Core.Models.Gadget">
  <GadgetDetailsRequest>
    <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>
  <GadgetDetailsRequest>
    <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>
</ArrayOfGadgetDetailsRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

GadgetDetailsResponse
NameDescriptionTypeAdditional 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>