POST api/AdditionalServiceType/Add

Request Information

URI Parameters

None.

Body Parameters

AddAdditionalServiceTypeBindingModels
NameDescriptionTypeAdditional information
TypeName

string

Required

IsRestrictedCountry

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "TypeName": "sample string 1",
  "IsRestrictedCountry": true
}

application/xml, text/xml

Sample:
<AddAdditionalServiceTypeBindingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <IsRestrictedCountry>true</IsRestrictedCountry>
  <TypeName>sample string 1</TypeName>
</AddAdditionalServiceTypeBindingModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AdditionalServiceTypeViewModels
NameDescriptionTypeAdditional information
Id

integer

None.

TypeName

string

None.

IsRestrictedCountry

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TypeName": "sample string 2",
  "IsRestrictedCountry": true
}

application/xml, text/xml

Sample:
<AdditionalServiceTypeViewModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <Id>1</Id>
  <IsRestrictedCountry>true</IsRestrictedCountry>
  <TypeName>sample string 2</TypeName>
</AdditionalServiceTypeViewModels>