GET api/proposal/{id}

Gets a proposal.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The proposal id.

string

Required

Body Parameters

None.

Response Information

Resource Description

A ProposalViewModel object.

Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalViewModel
NameDescriptionTypeAdditional information
Id

string

None.

DateFrom

string

None.

DateTo

string

None.

Price

decimal number

None.

Language

string

None.

Client

string

None.

Pax

integer

None.

ProposalDate

string

None.

Layout

string

None.

Comments

string

None.

Company

Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalCompanyViewModel

None.

User

Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalUserViewModel

None.

Destinations

Collection of string

None.

SupplierDescriptions

Collection of Cyberlogic.eTourism.Domain.ViewModels.Proposal.BookingServiceDescriptions.ProposalSupplierDescriptionViewModel

None.

ProposalItems

Collection of Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalItemViewModel

None.

PerPersonAnalysis

Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalPerPersonAnalysisViewModel

None.

Adults

integer

None.

Children

integer

None.

Infants

integer

None.

Free

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "DateFrom": "sample string 2",
  "DateTo": "sample string 3",
  "Price": 4.0,
  "Language": "sample string 5",
  "Client": "sample string 6",
  "Pax": 7,
  "ProposalDate": "sample string 8",
  "Layout": "sample string 9",
  "Comments": "sample string 10",
  "Company": {
    "Name": "sample string 1",
    "Address": "sample string 2",
    "Area": "sample string 3",
    "Telephone": "sample string 4",
    "Fax": "sample string 5"
  },
  "User": {
    "Name": "sample string 1",
    "Email": "sample string 2",
    "Telephone": "sample string 3",
    "Mobile": "sample string 4"
  },
  "Destinations": [
    "sample string 1",
    "sample string 2"
  ],
  "SupplierDescriptions": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "MainDescription": "sample string 3",
      "Media": {
        "DefaultImage": "sample string 1",
        "DefaultVideo": "sample string 2",
        "Images": [
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          },
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          }
        ],
        "Videos": [
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          },
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          }
        ]
      }
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "MainDescription": "sample string 3",
      "Media": {
        "DefaultImage": "sample string 1",
        "DefaultVideo": "sample string 2",
        "Images": [
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          },
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          }
        ],
        "Videos": [
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          },
          {
            "MainUrl": "sample string 1",
            "Description": "sample string 2"
          }
        ]
      }
    }
  ],
  "ProposalItems": [
    {
      "Id": 1,
      "Type": "sample string 2",
      "SubType": "sample string 3",
      "Description": null,
      "Info": {
        "DateFrom": "sample string 1",
        "DateTo": "sample string 2",
        "Price": 3.0,
        "PriceAdults": 4.0,
        "PriceChildren": 5.0,
        "PriceBasis": "sample string 6",
        "Adults": 7,
        "Children": 8,
        "Infants": 9,
        "Free": 10,
        "Quantity": 11,
        "Description": "sample string 12",
        "Group": "sample string 13",
        "SupplierId": 14,
        "RemoveFromProposal": true
      }
    },
    {
      "Id": 1,
      "Type": "sample string 2",
      "SubType": "sample string 3",
      "Description": null,
      "Info": {
        "DateFrom": "sample string 1",
        "DateTo": "sample string 2",
        "Price": 3.0,
        "PriceAdults": 4.0,
        "PriceChildren": 5.0,
        "PriceBasis": "sample string 6",
        "Adults": 7,
        "Children": 8,
        "Infants": 9,
        "Free": 10,
        "Quantity": 11,
        "Description": "sample string 12",
        "Group": "sample string 13",
        "SupplierId": 14,
        "RemoveFromProposal": true
      }
    }
  ],
  "PerPersonAnalysis": {
    "Lines": [
      {
        "Group": "sample string 1",
        "AdultsPrice": 2.0,
        "ChildrenPrice": 3.0,
        "ShowChildrenPriceLine": true
      },
      {
        "Group": "sample string 1",
        "AdultsPrice": 2.0,
        "ChildrenPrice": 3.0,
        "ShowChildrenPriceLine": true
      }
    ]
  },
  "Adults": 11,
  "Children": 12,
  "Infants": 13,
  "Free": 14
}

text/html

Sample:
{"Id":"sample string 1","DateFrom":"sample string 2","DateTo":"sample string 3","Price":4.0,"Language":"sample string 5","Client":"sample string 6","Pax":7,"ProposalDate":"sample string 8","Layout":"sample string 9","Comments":"sample string 10","Company":{"Name":"sample string 1","Address":"sample string 2","Area":"sample string 3","Telephone":"sample string 4","Fax":"sample string 5"},"User":{"Name":"sample string 1","Email":"sample string 2","Telephone":"sample string 3","Mobile":"sample string 4"},"Destinations":["sample string 1","sample string 2"],"SupplierDescriptions":[{"Id":1,"Name":"sample string 2","MainDescription":"sample string 3","Media":{"DefaultImage":"sample string 1","DefaultVideo":"sample string 2","Images":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}],"Videos":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}]}},{"Id":1,"Name":"sample string 2","MainDescription":"sample string 3","Media":{"DefaultImage":"sample string 1","DefaultVideo":"sample string 2","Images":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}],"Videos":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}]}}],"ProposalItems":[{"Id":1,"Type":"sample string 2","SubType":"sample string 3","Description":null,"Info":{"DateFrom":"sample string 1","DateTo":"sample string 2","Price":3.0,"PriceAdults":4.0,"PriceChildren":5.0,"PriceBasis":"sample string 6","Adults":7,"Children":8,"Infants":9,"Free":10,"Quantity":11,"Description":"sample string 12","Group":"sample string 13","SupplierId":14,"RemoveFromProposal":true}},{"Id":1,"Type":"sample string 2","SubType":"sample string 3","Description":null,"Info":{"DateFrom":"sample string 1","DateTo":"sample string 2","Price":3.0,"PriceAdults":4.0,"PriceChildren":5.0,"PriceBasis":"sample string 6","Adults":7,"Children":8,"Infants":9,"Free":10,"Quantity":11,"Description":"sample string 12","Group":"sample string 13","SupplierId":14,"RemoveFromProposal":true}}],"PerPersonAnalysis":{"Lines":[{"Group":"sample string 1","AdultsPrice":2.0,"ChildrenPrice":3.0,"ShowChildrenPriceLine":true},{"Group":"sample string 1","AdultsPrice":2.0,"ChildrenPrice":3.0,"ShowChildrenPriceLine":true}]},"Adults":11,"Children":12,"Infants":13,"Free":14}

application/xml, text/xml

Sample:
<ProposalViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Proposal">
  <Adults>11</Adults>
  <Children>12</Children>
  <Client>sample string 6</Client>
  <Comments>sample string 10</Comments>
  <Company>
    <Address>sample string 2</Address>
    <Area>sample string 3</Area>
    <Fax>sample string 5</Fax>
    <Name>sample string 1</Name>
    <Telephone>sample string 4</Telephone>
  </Company>
  <DateFrom>sample string 2</DateFrom>
  <DateTo>sample string 3</DateTo>
  <Destinations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Destinations>
  <Free>14</Free>
  <Id>sample string 1</Id>
  <Infants>13</Infants>
  <Language>sample string 5</Language>
  <Layout>sample string 9</Layout>
  <Pax>7</Pax>
  <PerPersonAnalysis>
    <Lines>
      <ProposalPerPersonAnalysisLineViewModel>
        <AdultsPrice>2</AdultsPrice>
        <ChildrenPrice>3</ChildrenPrice>
        <Group>sample string 1</Group>
        <ShowChildrenPriceLine>true</ShowChildrenPriceLine>
      </ProposalPerPersonAnalysisLineViewModel>
      <ProposalPerPersonAnalysisLineViewModel>
        <AdultsPrice>2</AdultsPrice>
        <ChildrenPrice>3</ChildrenPrice>
        <Group>sample string 1</Group>
        <ShowChildrenPriceLine>true</ShowChildrenPriceLine>
      </ProposalPerPersonAnalysisLineViewModel>
    </Lines>
  </PerPersonAnalysis>
  <Price>4</Price>
  <ProposalDate>sample string 8</ProposalDate>
  <ProposalItems>
    <ProposalItemViewModel>
      <Description i:nil="true" />
      <Id>1</Id>
      <Info>
        <Adults>7</Adults>
        <Children>8</Children>
        <DateFrom>sample string 1</DateFrom>
        <DateTo>sample string 2</DateTo>
        <Description>sample string 12</Description>
        <Free>10</Free>
        <Group>sample string 13</Group>
        <Infants>9</Infants>
        <Price>3</Price>
        <PriceAdults>4</PriceAdults>
        <PriceBasis>sample string 6</PriceBasis>
        <PriceChildren>5</PriceChildren>
        <Quantity>11</Quantity>
        <RemoveFromProposal>true</RemoveFromProposal>
        <SupplierId>14</SupplierId>
      </Info>
      <SubType>sample string 3</SubType>
      <Type>sample string 2</Type>
    </ProposalItemViewModel>
    <ProposalItemViewModel>
      <Description i:nil="true" />
      <Id>1</Id>
      <Info>
        <Adults>7</Adults>
        <Children>8</Children>
        <DateFrom>sample string 1</DateFrom>
        <DateTo>sample string 2</DateTo>
        <Description>sample string 12</Description>
        <Free>10</Free>
        <Group>sample string 13</Group>
        <Infants>9</Infants>
        <Price>3</Price>
        <PriceAdults>4</PriceAdults>
        <PriceBasis>sample string 6</PriceBasis>
        <PriceChildren>5</PriceChildren>
        <Quantity>11</Quantity>
        <RemoveFromProposal>true</RemoveFromProposal>
        <SupplierId>14</SupplierId>
      </Info>
      <SubType>sample string 3</SubType>
      <Type>sample string 2</Type>
    </ProposalItemViewModel>
  </ProposalItems>
  <SupplierDescriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Proposal.BookingServiceDescriptions">
    <d2p1:ProposalSupplierDescriptionViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:MainDescription>sample string 3</d2p1:MainDescription>
      <d2p1:Media>
        <DefaultImage>sample string 1</DefaultImage>
        <DefaultVideo>sample string 2</DefaultVideo>
        <Images>
          <ProposalImageDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalImageDescriptionViewModel>
          <ProposalImageDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalImageDescriptionViewModel>
        </Images>
        <Videos>
          <ProposalVideoDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalVideoDescriptionViewModel>
          <ProposalVideoDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalVideoDescriptionViewModel>
        </Videos>
      </d2p1:Media>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:ProposalSupplierDescriptionViewModel>
    <d2p1:ProposalSupplierDescriptionViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:MainDescription>sample string 3</d2p1:MainDescription>
      <d2p1:Media>
        <DefaultImage>sample string 1</DefaultImage>
        <DefaultVideo>sample string 2</DefaultVideo>
        <Images>
          <ProposalImageDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalImageDescriptionViewModel>
          <ProposalImageDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalImageDescriptionViewModel>
        </Images>
        <Videos>
          <ProposalVideoDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalVideoDescriptionViewModel>
          <ProposalVideoDescriptionViewModel>
            <Description>sample string 2</Description>
            <MainUrl>sample string 1</MainUrl>
          </ProposalVideoDescriptionViewModel>
        </Videos>
      </d2p1:Media>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:ProposalSupplierDescriptionViewModel>
  </SupplierDescriptions>
  <User>
    <Email>sample string 2</Email>
    <Mobile>sample string 4</Mobile>
    <Name>sample string 1</Name>
    <Telephone>sample string 3</Telephone>
  </User>
</ProposalViewModel>