POST api/AirlineProfiles

Request Information

URI Parameters

None.

Body Parameters

AirlineProfileBindingModel
NameDescriptionTypeAdditional information
Name

string

String length: inclusive between 0 and 125

Telp

string

String length: inclusive between 0 and 256

Email

string

None.

ImageUrl

string

None.

TinyImageUrl

string

None.

CompanyId

integer

None.

AddressObject

PostAddressBindingModel

None.

ImageName

string

None.

ImageContent

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Telp": "sample string 2",
  "Email": "sample string 3",
  "ImageUrl": "sample string 4",
  "TinyImageUrl": "sample string 5",
  "CompanyId": 6,
  "AddressObject": {
    "Id": 1,
    "Address1": "sample string 1",
    "Address2": "sample string 2",
    "Address3": "sample string 3",
    "Landmark": "sample string 4",
    "PostalCode": "sample string 5",
    "AreaId": "sample string 6"
  },
  "ImageName": "sample string 7",
  "ImageContent": "sample string 8"
}

application/xml, text/xml

Sample:
<AirlineProfileBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <AddressObject>
    <Address1>sample string 1</Address1>
    <Address2>sample string 2</Address2>
    <Address3>sample string 3</Address3>
    <AreaId>sample string 6</AreaId>
    <Landmark>sample string 4</Landmark>
    <PostalCode>sample string 5</PostalCode>
    <Id>1</Id>
  </AddressObject>
  <CompanyId>6</CompanyId>
  <Email>sample string 3</Email>
  <ImageContent>sample string 8</ImageContent>
  <ImageName>sample string 7</ImageName>
  <ImageUrl>sample string 4</ImageUrl>
  <Name>sample string 1</Name>
  <Telp>sample string 2</Telp>
  <TinyImageUrl>sample string 5</TinyImageUrl>
</AirlineProfileBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AirlineProfileViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

String length: inclusive between 0 and 125

Telp

string

String length: inclusive between 0 and 256

ImageUrl

string

None.

TinyImageUrl

string

None.

ImageName

string

None.

Email

string

None.

AddressObject

AddressComponentViewModel

None.

Response Formats

application/json, text/json

Sample:

Sample not available.