GET /api/cruises
List all cruises.

Examples

{
  [
    {
      id: 38,
      cruise_code: 859,
      ship: "MSC Meraviglia",
      ...
      },
    {
      id: 39,
      cruise_code: 860,
      ship: "MSC Musica",
      ...
    },
    ...
    ...
    More info in cruise detail...
    ]
  }

GET /api/cruises/:id
Get cruise by :id.

Errors

Code Description
404 Not Found

Examples

{
      id: "Cruise ID (integer)",
      cruise_code: "Cruise CODE (integer)",
      ship: "Ship name (string)",
      ship_id: "Ship ID (integer)",
      route: "Route (string)",
      starts_at: "Start date (date)",
      ends_at: "End date (date)",
      days: "Days count (integer)",
      nights: "Nights conut (integer)",
      price: "Regular price in CZK (integer)",
      price_action: "Action price in CZK (integer)",
      price_child: "Child price in CZK (integer)",
      price_youngster: "Youngster price in CZK (integer)",
      with_delegate: "With delegate (boolean)",
      with_bus: "Transport with bus (boolean)",
      with_aerial: "Transport with airplane (boolean)",
      custom_transport_to_port: "Custom transport to port (boolean)",
      active: "Active (boolean)",
      name: "Cruise name with number (string)",
      extras: "Something extra in the price (string)",
      description: "Cruise description (text)",
      agenda: "Cruise agenda (text)",
      contains: "The price of the trip includes (text)",
      not_contains: "The price of the trip not includes (text)",
      extra_cash: "For a surcharge we offer (text)",
      comment: "Note (text)",
      starting_port: "Starting point (string)",
      position: "Order position (integer)",
      destination:{
        id: "Destination ID (integer)",
        title: "Name (string)",
        description: "Description (text)"
      },
      galleries: [
        {
          id: "ID (integer)",
          file:{
          url: "Original file url (string)",
            thumb:{
            url: "Thumb file url (string)"
            },
            content:{
            url: "Content file url (string)"
            }
          },
          description: "Attachment description (string)"
        },
      ],
      avatar:{
        id: "Avatar ID (integer)",
        file:{
          url: "Original file url (string)",
          thumb:{
            url: "Thumb file url (string)"
          },
          content:{
            url: "Content file url (string)"
          }
        },
        description: "Asset description (string)"
      },
      route_map:{
        id: "Attachment ID (integer)",
        file:{
          url: "Original file url (string)",
          thumb:{
            url: "Thumb file url (string)"
          },
          content:{
            url: "Content file url (string)"
          }
        },
        description: "Asset description (text)"
      },
      insurances: [
        {
          id: "Insurance ID (integer)",
          name: "Name (string)",
          description: "Destcription (text)",
          price: "Price in CZK (integer)",
        }
      ],
      excursions: [
        {
        id: "Excursion ID (integer)",
        price_adult: "Adult price in CZK (integer)",
        price_child: "Child price in CZK (integer)",
        excursion: {
          id: "ID (integer)",
          number: "ATHENS -PIREAUS",
          description: "Destcription (text)"
        }
        },
      ],
      cabins: [
        {
          id: "Cabin ID (integer)",
          name: "Cabin name (string)",
          description: "Cabin description (text)",
          galleries: [
            {
              id: "Attachment ID (integer)",
              file:{
                url: "Original file url (string)",
                thumb:{
                  url: "Thumb file url (string)"
                },
                content:{
                  url: "Content file url (string)"
                }
              },
              description: "Attachment description (text)"
            }
          ]
        }
      ]
    }

GET /api/cruises/:id/map
Get map for cruise :id.

Errors

Code Description
404 Not Found

Examples

{
  file: {
    url: "Original file url (string)",
    thumb: {
      url: "Thumb file url (string)"
    },
    content: {
      url: "Content file url (string)"
    }
  },
  description: "Attachment description (text)",
}

GET /api/cruises/:id/featured_image
Get featured_image for cruise :id.


GET /api/cruises/:id/gallery
Get gallery for cruise :id.