reiseland_api v0.0.3
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 /
Class | Method | HTTP request | Description |
---|---|---|---|
ReiselandApi.AccommodationApi | getAccommodationCollection | GET /accommodations | Retrieves the collection of Accommodation resources. |
ReiselandApi.AccommodationApi | getAccommodationItem | GET /accommodations/{id} | Retrieves a Accommodation resource. |
ReiselandApi.AccommodationTypeApi | getAccommodationTypeCollection | GET /accommodation_types | Retrieves the collection of AccommodationType resources. |
ReiselandApi.AccommodationTypeApi | getAccommodationTypeItem | GET /accommodation_types/{id} | Retrieves a AccommodationType resource. |
ReiselandApi.BookingTypeApi | getBookingTypeCollection | GET /booking_types | Retrieves the collection of BookingType resources. |
ReiselandApi.BookingTypeApi | getBookingTypeItem | GET /booking_types/{id} | Retrieves a BookingType resource. |
ReiselandApi.ContinentApi | getContinentCollection | GET /continents | Retrieves the collection of Continent resources. |
ReiselandApi.ContinentApi | getContinentItem | GET /continents/{id} | Retrieves a Continent resource. |
ReiselandApi.CountryApi | getCountryCollection | GET /countries | Retrieves the collection of Country resources. |
ReiselandApi.CountryApi | getCountryItem | GET /countries/{id} | Retrieves a Country resource. |
ReiselandApi.CruisesApi | apiCruisesDatesGetSubresource | GET /cruises/{id}/dates | Retrieves the collection of Date resources. |
ReiselandApi.CruisesApi | apiCruisesDatesPricesGetSubresource | GET /cruises/{id}/dates/{dates}/prices | Retrieves the collection of Price resources. |
ReiselandApi.CruisesApi | getCruiseCollection | GET /cruises | Retrieves the collection of Cruise resources. |
ReiselandApi.CruisesApi | getCruiseItem | GET /cruises/{id} | Retrieves a Cruise resource. |
ReiselandApi.DateApi | apiDatesPricesGetSubresource | GET /dates/{id}/prices | Retrieves the collection of Price resources. |
ReiselandApi.DateApi | getDateCollection | GET /dates | Retrieves the collection of Date resources. |
ReiselandApi.DateApi | getDateItem | GET /dates/{id} | Retrieves a Date resource. |
ReiselandApi.DeckApi | getDeckCollection | GET /deck | Retrieves the collection of Deck resources. |
ReiselandApi.DeckApi | getDeckItem | GET /deck/{id} | Retrieves a Deck resource. |
ReiselandApi.DestinationApi | getDestinationCollection | GET /destinations | Retrieves the collection of Destination resources. |
ReiselandApi.DestinationApi | getDestinationItem | GET /destinations/{id} | Retrieves a Destination resource. |
ReiselandApi.ImageApi | getImageCollection | GET /images | Retrieves the collection of Image resources. |
ReiselandApi.ImageApi | getImageItem | GET /images/{id} | Retrieves a Image resource. |
ReiselandApi.LanguageApi | getLanguageCollection | GET /languages | Retrieves the collection of Language resources. |
ReiselandApi.LanguageApi | getLanguageItem | GET /languages/{id} | Retrieves a Language resource. |
ReiselandApi.OccupancyApi | getOccupancyCollection | GET /occupancies | Retrieves the collection of Occupancy resources. |
ReiselandApi.OccupancyApi | getOccupancyItem | GET /occupancies/{id} | Retrieves a Occupancy resource. |
ReiselandApi.PortApi | getPortCollection | GET /ports | Retrieves the collection of Port resources. |
ReiselandApi.PortApi | getPortItem | GET /ports/{id} | Retrieves a Port resource. |
ReiselandApi.PriceApi | apiDatesPricesGetSubresource | GET /dates/{id}/prices | Retrieves the collection of Price resources. |
ReiselandApi.PriceApi | getPriceCollection | GET /prices | Retrieves the collection of Price resources. |
ReiselandApi.PriceApi | getPriceItem | GET /prices/{id} | Retrieves a Price resource. |
ReiselandApi.SearchApi | searchDestinationCollection | GET /search/destinations | Retrieves the collection of Destination resources. |
ReiselandApi.SearchApi | searchDurationsDateCollection | GET /search/durations | Retrieves the collection of Date resources. |
ReiselandApi.SearchApi | searchPortsPortCollection | GET /search/ports | Retrieves the collection of Port resources. |
ReiselandApi.SearchApi | searchShipCollection | GET /search/ships | Retrieves the collection of Ship resources. |
ReiselandApi.SearchApi | searchShippingCompanyCollection | GET /search/shipping_companies | Retrieves the collection of ShippingCompany resources. |
ReiselandApi.SearchApi | searchThemeThemeCollection | GET /search/themes | Retrieves the collection of Theme resources. |
ReiselandApi.SearchApi | searchTravelPeriodsDateCollection | GET /search/travel_periods | Retrieves the collection of Date resources. |
ReiselandApi.ServicesApi | getBookableServiceCollection | GET /bookable | Retrieves the collection of BookableService resources. |
ReiselandApi.ServicesApi | getBookableServiceItem | GET /bookable/{id} | Retrieves a BookableService resource. |
ReiselandApi.ServicesApi | getInclusiveServiceCollection | GET /inclusive | Retrieves the collection of InclusiveService resources. |
ReiselandApi.ServicesApi | getInclusiveServiceItem | GET /inclusive/{id} | Retrieves a InclusiveService resource. |
ReiselandApi.ServicesApi | getNotBookableServiceCollection | GET /notbookable | Retrieves the collection of NotBookableService resources. |
ReiselandApi.ServicesApi | getNotBookableServiceItem | GET /notbookable/{id} | Retrieves a NotBookableService resource. |
ReiselandApi.ShippingCompanyApi | getShippingCompanyCollection | GET /shipping_companies | Retrieves the collection of ShippingCompany resources. |
ReiselandApi.ShippingCompanyApi | getShippingCompanyItem | GET /shipping_companies/{id} | Retrieves a ShippingCompany resource. |
ReiselandApi.ShipsApi | getShipCollection | GET /ships | Retrieves the collection of Ship resources. |
ReiselandApi.ShipsApi | getShipItem | GET /ships/{id} | Retrieves a Ship resource. |
ReiselandApi.ThemeApi | getThemeCollection | GET /themes | Retrieves the collection of Theme resources. |
ReiselandApi.ThemeApi | getThemeItem | GET /themes/{id} | Retrieves a Theme resource. |
ReiselandApi.TravelFeatureApi | getTravelFeatureCollection | GET /travel_features | Retrieves the collection of TravelFeature resources. |
ReiselandApi.TravelFeatureApi | getTravelFeatureItem | GET /travel_features/{id} | Retrieves a TravelFeature resource. |
ReiselandApi.TravelItineraryApi | getTravelItineraryCollection | GET /travel_itineraries | Retrieves the collection of TravelItinerary resources. |
ReiselandApi.TravelItineraryApi | getTravelItineraryItem | GET /travel_itineraries/{id} | Retrieves a TravelItinerary resource. |
Documentation for Models
- ReiselandApi.AccommodationGet
- ReiselandApi.AccommodationTypeGet
- ReiselandApi.BookableServiceGet
- ReiselandApi.BookingTypeGet
- ReiselandApi.ContinentGet
- ReiselandApi.CountryGet
- ReiselandApi.CruiseGet
- ReiselandApi.CruiseHead
- ReiselandApi.DateGet
- ReiselandApi.DateHead
- ReiselandApi.DateSearchDurations
- ReiselandApi.DateSearchTravelPeriods
- ReiselandApi.DeckGet
- ReiselandApi.DestinationGet
- ReiselandApi.DestinationHead
- ReiselandApi.DestinationSearch
- ReiselandApi.ImageGet
- ReiselandApi.ImageHead
- ReiselandApi.InclusiveServiceGet
- ReiselandApi.LanguageGet
- ReiselandApi.NotBookableServiceGet
- ReiselandApi.OccupancyGet
- ReiselandApi.PortGet
- ReiselandApi.PortHead
- ReiselandApi.PortSearchPorts
- ReiselandApi.PriceGet
- ReiselandApi.PriceHead
- ReiselandApi.ShipGet
- ReiselandApi.ShipHead
- ReiselandApi.ShipSearch
- ReiselandApi.ShippingCompanyGet
- ReiselandApi.ShippingCompanyHead
- ReiselandApi.ShippingCompanySearch
- ReiselandApi.ThemeGet
- ReiselandApi.ThemeHead
- ReiselandApi.ThemeSearchTheme
- ReiselandApi.TravelFeatureGet
- ReiselandApi.TravelItineraryGet
Documentation for Authorization
All endpoints do not require authorization.