0.0.3 • Published 4 years ago

reiseland_api v0.0.3

Weekly downloads
-
License
Unlicense
Repository
-
Last release
4 years ago

reiseland_api

ReiselandApi - JavaScript client for reiseland_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install reiseland_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var ReiselandApi = require('reiseland_api');

var api = new ReiselandApi.AccommodationApi()
var opts = { 
  'occupancyOccupancyId': 56, // {Number} 
  'occupancyOccupancyId2': [3.4], // {[Number]} 
  'typeAccommodationTypeId': 56, // {Number} 
  'typeAccommodationTypeId2': [3.4], // {[Number]} 
  'page': 56 // {Number} The collection page number
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAccommodationCollection(opts, callback);

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
ReiselandApi.AccommodationApigetAccommodationCollectionGET /accommodationsRetrieves the collection of Accommodation resources.
ReiselandApi.AccommodationApigetAccommodationItemGET /accommodations/{id}Retrieves a Accommodation resource.
ReiselandApi.AccommodationTypeApigetAccommodationTypeCollectionGET /accommodation_typesRetrieves the collection of AccommodationType resources.
ReiselandApi.AccommodationTypeApigetAccommodationTypeItemGET /accommodation_types/{id}Retrieves a AccommodationType resource.
ReiselandApi.BookingTypeApigetBookingTypeCollectionGET /booking_typesRetrieves the collection of BookingType resources.
ReiselandApi.BookingTypeApigetBookingTypeItemGET /booking_types/{id}Retrieves a BookingType resource.
ReiselandApi.ContinentApigetContinentCollectionGET /continentsRetrieves the collection of Continent resources.
ReiselandApi.ContinentApigetContinentItemGET /continents/{id}Retrieves a Continent resource.
ReiselandApi.CountryApigetCountryCollectionGET /countriesRetrieves the collection of Country resources.
ReiselandApi.CountryApigetCountryItemGET /countries/{id}Retrieves a Country resource.
ReiselandApi.CruisesApiapiCruisesDatesGetSubresourceGET /cruises/{id}/datesRetrieves the collection of Date resources.
ReiselandApi.CruisesApiapiCruisesDatesPricesGetSubresourceGET /cruises/{id}/dates/{dates}/pricesRetrieves the collection of Price resources.
ReiselandApi.CruisesApigetCruiseCollectionGET /cruisesRetrieves the collection of Cruise resources.
ReiselandApi.CruisesApigetCruiseItemGET /cruises/{id}Retrieves a Cruise resource.
ReiselandApi.DateApiapiDatesPricesGetSubresourceGET /dates/{id}/pricesRetrieves the collection of Price resources.
ReiselandApi.DateApigetDateCollectionGET /datesRetrieves the collection of Date resources.
ReiselandApi.DateApigetDateItemGET /dates/{id}Retrieves a Date resource.
ReiselandApi.DeckApigetDeckCollectionGET /deckRetrieves the collection of Deck resources.
ReiselandApi.DeckApigetDeckItemGET /deck/{id}Retrieves a Deck resource.
ReiselandApi.DestinationApigetDestinationCollectionGET /destinationsRetrieves the collection of Destination resources.
ReiselandApi.DestinationApigetDestinationItemGET /destinations/{id}Retrieves a Destination resource.
ReiselandApi.ImageApigetImageCollectionGET /imagesRetrieves the collection of Image resources.
ReiselandApi.ImageApigetImageItemGET /images/{id}Retrieves a Image resource.
ReiselandApi.LanguageApigetLanguageCollectionGET /languagesRetrieves the collection of Language resources.
ReiselandApi.LanguageApigetLanguageItemGET /languages/{id}Retrieves a Language resource.
ReiselandApi.OccupancyApigetOccupancyCollectionGET /occupanciesRetrieves the collection of Occupancy resources.
ReiselandApi.OccupancyApigetOccupancyItemGET /occupancies/{id}Retrieves a Occupancy resource.
ReiselandApi.PortApigetPortCollectionGET /portsRetrieves the collection of Port resources.
ReiselandApi.PortApigetPortItemGET /ports/{id}Retrieves a Port resource.
ReiselandApi.PriceApiapiDatesPricesGetSubresourceGET /dates/{id}/pricesRetrieves the collection of Price resources.
ReiselandApi.PriceApigetPriceCollectionGET /pricesRetrieves the collection of Price resources.
ReiselandApi.PriceApigetPriceItemGET /prices/{id}Retrieves a Price resource.
ReiselandApi.SearchApisearchDestinationCollectionGET /search/destinationsRetrieves the collection of Destination resources.
ReiselandApi.SearchApisearchDurationsDateCollectionGET /search/durationsRetrieves the collection of Date resources.
ReiselandApi.SearchApisearchPortsPortCollectionGET /search/portsRetrieves the collection of Port resources.
ReiselandApi.SearchApisearchShipCollectionGET /search/shipsRetrieves the collection of Ship resources.
ReiselandApi.SearchApisearchShippingCompanyCollectionGET /search/shipping_companiesRetrieves the collection of ShippingCompany resources.
ReiselandApi.SearchApisearchThemeThemeCollectionGET /search/themesRetrieves the collection of Theme resources.
ReiselandApi.SearchApisearchTravelPeriodsDateCollectionGET /search/travel_periodsRetrieves the collection of Date resources.
ReiselandApi.ServicesApigetBookableServiceCollectionGET /bookableRetrieves the collection of BookableService resources.
ReiselandApi.ServicesApigetBookableServiceItemGET /bookable/{id}Retrieves a BookableService resource.
ReiselandApi.ServicesApigetInclusiveServiceCollectionGET /inclusiveRetrieves the collection of InclusiveService resources.
ReiselandApi.ServicesApigetInclusiveServiceItemGET /inclusive/{id}Retrieves a InclusiveService resource.
ReiselandApi.ServicesApigetNotBookableServiceCollectionGET /notbookableRetrieves the collection of NotBookableService resources.
ReiselandApi.ServicesApigetNotBookableServiceItemGET /notbookable/{id}Retrieves a NotBookableService resource.
ReiselandApi.ShippingCompanyApigetShippingCompanyCollectionGET /shipping_companiesRetrieves the collection of ShippingCompany resources.
ReiselandApi.ShippingCompanyApigetShippingCompanyItemGET /shipping_companies/{id}Retrieves a ShippingCompany resource.
ReiselandApi.ShipsApigetShipCollectionGET /shipsRetrieves the collection of Ship resources.
ReiselandApi.ShipsApigetShipItemGET /ships/{id}Retrieves a Ship resource.
ReiselandApi.ThemeApigetThemeCollectionGET /themesRetrieves the collection of Theme resources.
ReiselandApi.ThemeApigetThemeItemGET /themes/{id}Retrieves a Theme resource.
ReiselandApi.TravelFeatureApigetTravelFeatureCollectionGET /travel_featuresRetrieves the collection of TravelFeature resources.
ReiselandApi.TravelFeatureApigetTravelFeatureItemGET /travel_features/{id}Retrieves a TravelFeature resource.
ReiselandApi.TravelItineraryApigetTravelItineraryCollectionGET /travel_itinerariesRetrieves the collection of TravelItinerary resources.
ReiselandApi.TravelItineraryApigetTravelItineraryItemGET /travel_itineraries/{id}Retrieves a TravelItinerary resource.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago