text:
## Quickstart - How To Install:

The generated code relies on node package manager (npm) being available to resolve dependencies.

    npm install https://github.com/holidaywatchdog/api-client-node --save

How To Use:
===========
The following shows how import the controllers and use:

1) Import the module:

        var holidayWatchdogApi = require('holiday-watchdog-api');
2) Configure any authentication parameters. For example:

        var config = holidayWatchdogApi.configuration;
        config.authorization = process.env.API_AUTH_KEY;
        //Optionally change end point for testing
        //config.BASEURI = 'http://localhost:3000'

3) Access various controllers by:

        var controller = holidayWatchdogApi.LocationNearestAirportsController;
        controller.findById (187460, {},
            function(err, data){
              if(err) throw error(err);

              console.log(data);
            }

## How to Build

The generated SDK relies on [Node Package Manager](https://www.npmjs.com/) (NPM) being available to resolve dependencies. If you don't already have NPM installed, please go ahead and follow instructions to install NPM from [here](https://nodejs.org/en/download/).
The SDK also requires Node to be installed. If Node isn't already installed, please install it from [here](https://nodejs.org/en/download/)
> NPM is installed by default when Node is installed

To check if node and npm have been successfully installed, write the following commands in command prompt:
* `node --version`
* `npm -version`
![Version Check](http://apidocs.io/illustration/nodejs?step=versionCheck&workspaceFolder=HolidayWatchdogAPI-Node)

Now use npm to resolve all dependencies by running the following command in the root directory (of the SDK folder):
* `npm install`
![Resolve Dependencies](http://apidocs.io/illustration/nodejs?step=resolveDependency1&workspaceFolder=HolidayWatchdogAPI-Node)
![Resolve Dependencies](http://apidocs.io/illustration/nodejs?step=resolveDependency2)

This will install all dependencies in the `node_modules` folder.

Once dependencies are resolved, you will need to move the folder `HolidayWatchdogAPI ` in to your `node_modules` folder.

## How to Use

The following section explains how to use the library in a new project.

### 1. Open Project Folder
Open an IDE/Text Editor for JavaScript like Sublime Text. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.
Click on `File` and select `Open Folder`
![Open Folder](http://apidocs.io/illustration/nodejs?step=openFolder)

Select the folder of your SDK and click on `Select Folder` to open it up in Sublime Text. The folder will become visible in the bar on the left.
![Open Project](http://apidocs.io/illustration/nodejs?step=openProject&workspaceFolder=HolidayWatchdogAPI-Node)

### 2. Creating a Test File
Now right click on the folder name and select the `New File` option to create a new test file.    Save it as `index.js` Now import the generated NodeJS library using the following lines of code:
```JavaScript
var lib = require('lib');
```
Save changes.

![Create new file](http://apidocs.io/illustration/nodejs?step=createNewFile&workspaceFolder=HolidayWatchdogAPI-Node)
![Save new file](http://apidocs.io/illustration/nodejs?step=saveNewFile&workspaceFolder=HolidayWatchdogAPI-Node)

### 3. Running The Test File
To run the `index.js` file, open up the command prompt and navigate to the Path where the SDK folder resides. Type the following command to run the file:
`node index.js`
![Run file](http://apidocs.io/illustration/nodejs?step=runProject&workspaceFolder=HolidayWatchdogAPI-Node)

## How to Test

These tests use Mocha framework for testing, coupled with Chai for assertions. These dependencies need to be installed for tests to run.
Tests can be run in a number of ways:

### Method 1
###### (Run all tests)

1. Navigate to the root directory of the SDK folder from command prompt.
2. Type `mocha --recursive` to run all the tests.

### Method 2
###### (Run all tests)

1. Navigate to the `../test/Controllers/` directory from command prompt.
2. Type `mocha *` to run all the tests.

### Method 3
###### (Run specific controller's tests)

1. Navigate to the `../test/Controllers/` directory from command prompt.
2. Type `mocha  holidaywatchdog-apiController`  to run all the tests in that controller file.

> To increase mocha's default timeout, you can change the `TESTTIMEOUT` parameter's value in `Configuration.js`.
> ***NOTE:*** Changing default timeout is available for only Binary/File type endpoint tests

![Run Tests](http://apidocs.io/illustration/nodejs?step=runTests&controllerName=holidaywatchdog-apiController)

## Initialization

### Authentication
In order to setup authentication and initialization of the API client, you need the following information.

| Parameter | Description |
|-----------|-------------|
| authorization | Authorization Key |

API client can be initialized as following:

```JavaScript
// Configuration parameters and credentials
$authorization = "ReplaceMe"; // Authorization Key

var lib = require('lib');
```

## Class Reference

### List of Controllers

* [LocationController](#location_controller)
* [UserReviewController](#user_review_controller)
* [UserPhotoAlbumController](#user_photo_album_controller)
* [UserPhotoController](#user_photo_controller)
* [CruiseShipController](#cruise_ship_controller)
* [WarehousePagesController](#warehouse_pages_controller)
* [UserHwdController](#user_hwd_controller)
* [LocationNearestAirportsController](#location_nearest_airports_controller)
* [CruiseLineController](#cruise_line_controller)
* [ExternalMappingController](#external_mapping_controller)
* [CountryCurrenciesController](#country_currencies_controller)
* [UserReviewInternalCommentController](#user_review_internal_comment_controller)
* [SeoaliasController](#seoalias_controller)
* [AccommodationController](#accommodation_controller)
* [TripadvisorController](#tripadvisor_controller)

### ![Class: ](http://apidocs.io/img/class.png ".LocationController") LocationController

#### Get singleton instance

The singleton instance of the ``` LocationController ``` class can be accessed from the API Client.

```javascript
var controller = lib.LocationController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getLocationFindByIdLocationNearestAirports") getLocationFindByIdLocationNearestAirports

> Find a related item by id for location-nearest-airports.

```javascript
function getLocationFindByIdLocationNearestAirports(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for location-nearest-airports |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getLocationFindByIdLocationNearestAirports(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new Location|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new Location|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getLocationWithPath") getLocationWithPath

> Returns array of locations that make up the path including the current location.

```javascript
function getLocationWithPath(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";

    controller.getLocationWithPath(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getWeather") getWeather

> Returns latest weather information for this location.

```javascript
function getWeather(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";

    controller.getWeather(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getExistsGetLocationsIdExists") getExistsGetLocationsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetLocationsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetLocationsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.deleteLocationDeleteLocationNearestAirports") deleteLocationDeleteLocationNearestAirports

> Deletes all location-nearest-airports of this model.

```javascript
function deleteLocationDeleteLocationNearestAirports(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteLocationDeleteLocationNearestAirports(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getLocationGetLocationNearestAirports") getLocationGetLocationNearestAirports

> Queries location-nearest-airports of Location.

```javascript
function getLocationGetLocationNearestAirports(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getLocationGetLocationNearestAirports(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.updateLocationUpdateByIdLocationNearestAirports") updateLocationUpdateByIdLocationNearestAirports

> Update a related item by id for location-nearest-airports.

```javascript
function updateLocationUpdateByIdLocationNearestAirports(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for location-nearest-airports |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new LocationNearestAirports|null({"key":"value"});

    controller.updateLocationUpdateByIdLocationNearestAirports(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.deleteLocationDestroyByIdLocationNearestAirports") deleteLocationDestroyByIdLocationNearestAirports

> Delete a related item by id for location-nearest-airports.

```javascript
function deleteLocationDestroyByIdLocationNearestAirports(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for location-nearest-airports |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteLocationDestroyByIdLocationNearestAirports(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.createLocationCreateLocationNearestAirports") createLocationCreateLocationNearestAirports

> Creates a new instance in location-nearest-airports of this model.

```javascript
function createLocationCreateLocationNearestAirports(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new LocationNearestAirports|null({"key":"value"});

    controller.createLocationCreateLocationNearestAirports(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.getLocationCountLocationNearestAirports") getLocationCountLocationNearestAirports

> Counts location-nearest-airports of Location.

```javascript
function getLocationCountLocationNearestAirports(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getLocationCountLocationNearestAirports(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.updateLocationupdateAttributes") updateLocationupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateLocationupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new Location|null({"key":"value"});

    controller.updateLocationupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new Location|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".UserReviewController") UserReviewController

#### Get singleton instance

The singleton instance of the ``` UserReviewController ``` class can be accessed from the API Client.

```javascript
var controller = lib.UserReviewController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new UserReview|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.updateUserReviewupdateAttributes") updateUserReviewupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateUserReviewupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserReview|null({"key":"value"});

    controller.updateUserReviewupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.getUserReviewCountUserReviewInternalComments") getUserReviewCountUserReviewInternalComments

> Counts user-review-internal-comments of UserReview.

```javascript
function getUserReviewCountUserReviewInternalComments(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getUserReviewCountUserReviewInternalComments(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.createUserReviewCreateUserReviewInternalComments") createUserReviewCreateUserReviewInternalComments

> Creates a new instance in user-review-internal-comments of this model.

```javascript
function createUserReviewCreateUserReviewInternalComments(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserReviewInternalComment|null({"key":"value"});

    controller.createUserReviewCreateUserReviewInternalComments(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.getUserReviewGetUserReviewInternalComments") getUserReviewGetUserReviewInternalComments

> Queries user-review-internal-comments of UserReview.

```javascript
function getUserReviewGetUserReviewInternalComments(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getUserReviewGetUserReviewInternalComments(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.deleteUserReviewDestroyByIdUserReviewInternalComments") deleteUserReviewDestroyByIdUserReviewInternalComments

> Delete a related item by id for user-review-internal-comments.

```javascript
function deleteUserReviewDestroyByIdUserReviewInternalComments(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-review-internal-comments |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteUserReviewDestroyByIdUserReviewInternalComments(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.updateUserReviewUpdateByIdUserReviewInternalComments") updateUserReviewUpdateByIdUserReviewInternalComments

> Update a related item by id for user-review-internal-comments.

```javascript
function updateUserReviewUpdateByIdUserReviewInternalComments(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-review-internal-comments |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new UserReviewInternalComment|null({"key":"value"});

    controller.updateUserReviewUpdateByIdUserReviewInternalComments(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.getUserReviewFindByIdUserReviewInternalComments") getUserReviewFindByIdUserReviewInternalComments

> Find a related item by id for user-review-internal-comments.

```javascript
function getUserReviewFindByIdUserReviewInternalComments(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-review-internal-comments |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getUserReviewFindByIdUserReviewInternalComments(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserReview|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserReview|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.getExistsGetUserReviewsIdExists") getExistsGetUserReviewsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetUserReviewsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetUserReviewsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.deleteUserReviewDeleteUserReviewInternalComments") deleteUserReviewDeleteUserReviewInternalComments

> Deletes all user-review-internal-comments of this model.

```javascript
function deleteUserReviewDeleteUserReviewInternalComments(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteUserReviewDeleteUserReviewInternalComments(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.deleteUserReviewDestroyUser") deleteUserReviewDestroyUser

> Deletes user of this model.

```javascript
function deleteUserReviewDestroyUser(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteUserReviewDestroyUser(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.createUserReviewCreateUser") createUserReviewCreateUser

> Creates a new instance in user of this model.

```javascript
function createUserReviewCreateUser(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserHwd|null({"key":"value"});

    controller.createUserReviewCreateUser(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.updateUserReviewUpdateUser") updateUserReviewUpdateUser

> Update user of this model.

```javascript
function updateUserReviewUpdateUser(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserHwd|null({"key":"value"});

    controller.updateUserReviewUpdateUser(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewController.getUserReviewGetUser") getUserReviewGetUser

> Fetches hasOne relation user.

```javascript
function getUserReviewGetUser(id, refresh, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| refresh |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var refresh = false;

    controller.getUserReviewGetUser(id, refresh, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".UserPhotoAlbumController") UserPhotoAlbumController

#### Get singleton instance

The singleton instance of the ``` UserPhotoAlbumController ``` class can be accessed from the API Client.

```javascript
var controller = lib.UserPhotoAlbumController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.updateUserPhotoAlbumupdateAttributes") updateUserPhotoAlbumupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateUserPhotoAlbumupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.updateUserPhotoAlbumupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.getUserPhotoAlbumCountUserPhotos") getUserPhotoAlbumCountUserPhotos

> Counts user-photos of UserPhotoAlbum.

```javascript
function getUserPhotoAlbumCountUserPhotos(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getUserPhotoAlbumCountUserPhotos(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.deleteUserPhotoAlbumDestroyByIdUserPhotos") deleteUserPhotoAlbumDestroyByIdUserPhotos

> Delete a related item by id for user-photos.

```javascript
function deleteUserPhotoAlbumDestroyByIdUserPhotos(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photos |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteUserPhotoAlbumDestroyByIdUserPhotos(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.updateUserPhotoAlbumUpdateByIdUserPhotos") updateUserPhotoAlbumUpdateByIdUserPhotos

> Update a related item by id for user-photos.

```javascript
function updateUserPhotoAlbumUpdateByIdUserPhotos(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photos |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new UserPhoto|null({"key":"value"});

    controller.updateUserPhotoAlbumUpdateByIdUserPhotos(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.getUserPhotoAlbumFindByIdUserPhotos") getUserPhotoAlbumFindByIdUserPhotos

> Find a related item by id for user-photos.

```javascript
function getUserPhotoAlbumFindByIdUserPhotos(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photos |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getUserPhotoAlbumFindByIdUserPhotos(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.getExistsGetUserPhotoAlbumsIdExists") getExistsGetUserPhotoAlbumsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetUserPhotoAlbumsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetUserPhotoAlbumsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.deleteUserPhotoAlbumDeleteUserPhotos") deleteUserPhotoAlbumDeleteUserPhotos

> Deletes all user-photos of this model.

```javascript
function deleteUserPhotoAlbumDeleteUserPhotos(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteUserPhotoAlbumDeleteUserPhotos(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.createUserPhotoAlbumCreateUserPhotos") createUserPhotoAlbumCreateUserPhotos

> Creates a new instance in user-photos of this model.

```javascript
function createUserPhotoAlbumCreateUserPhotos(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserPhoto|null({"key":"value"});

    controller.createUserPhotoAlbumCreateUserPhotos(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoAlbumController.getUserPhotoAlbumGetUserPhotos") getUserPhotoAlbumGetUserPhotos

> Queries user-photos of UserPhotoAlbum.

```javascript
function getUserPhotoAlbumGetUserPhotos(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getUserPhotoAlbumGetUserPhotos(id, filter, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".UserPhotoController") UserPhotoController

#### Get singleton instance

The singleton instance of the ``` UserPhotoController ``` class can be accessed from the API Client.

```javascript
var controller = lib.UserPhotoController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new UserPhoto|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.updateUserPhotoupdateAttributes") updateUserPhotoupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateUserPhotoupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserPhoto|null({"key":"value"});

    controller.updateUserPhotoupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserPhoto|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserPhoto|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.getExistsGetUserPhotosIdExists") getExistsGetUserPhotosIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetUserPhotosIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetUserPhotosIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserPhotoController.getUserPhotoGetUserPhotoAlbum") getUserPhotoGetUserPhotoAlbum

> Fetches belongsTo relation user-photo-album.

```javascript
function getUserPhotoGetUserPhotoAlbum(id, refresh, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| refresh |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var refresh = false;

    controller.getUserPhotoGetUserPhotoAlbum(id, refresh, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".CruiseShipController") CruiseShipController

#### Get singleton instance

The singleton instance of the ``` CruiseShipController ``` class can be accessed from the API Client.

```javascript
var controller = lib.CruiseShipController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new CruiseShip|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.updateCruiseShipupdateAttributes") updateCruiseShipupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateCruiseShipupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new CruiseShip|null({"key":"value"});

    controller.updateCruiseShipupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new CruiseShip|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new CruiseShip|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.getExistsGetCruiseShipsIdExists") getExistsGetCruiseShipsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetCruiseShipsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetCruiseShipsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.deleteCruiseShipDestroyCruiseLines") deleteCruiseShipDestroyCruiseLines

> Deletes cruise-lines of this model.

```javascript
function deleteCruiseShipDestroyCruiseLines(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteCruiseShipDestroyCruiseLines(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.createCruiseShipCreateCruiseLines") createCruiseShipCreateCruiseLines

> Creates a new instance in cruise-lines of this model.

```javascript
function createCruiseShipCreateCruiseLines(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new CruiseLine|null({"key":"value"});

    controller.createCruiseShipCreateCruiseLines(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.updateCruiseShipUpdateCruiseLines") updateCruiseShipUpdateCruiseLines

> Update cruise-lines of this model.

```javascript
function updateCruiseShipUpdateCruiseLines(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new CruiseLine|null({"key":"value"});

    controller.updateCruiseShipUpdateCruiseLines(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseShipController.getCruiseShipGetCruiseLines") getCruiseShipGetCruiseLines

> Fetches hasOne relation cruise-lines.

```javascript
function getCruiseShipGetCruiseLines(id, refresh, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| refresh |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var refresh = false;

    controller.getCruiseShipGetCruiseLines(id, refresh, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".WarehousePagesController") WarehousePagesController

#### Get singleton instance

The singleton instance of the ``` WarehousePagesController ``` class can be accessed from the API Client.

```javascript
var controller = lib.WarehousePagesController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".WarehousePagesController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".WarehousePagesController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".WarehousePagesController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".WarehousePagesController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".WarehousePagesController.getExistsGetWarehousePagesIdExists") getExistsGetWarehousePagesIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetWarehousePagesIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetWarehousePagesIdExists(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".UserHwdController") UserHwdController

#### Get singleton instance

The singleton instance of the ``` UserHwdController ``` class can be accessed from the API Client.

```javascript
var controller = lib.UserHwdController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserHwd|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserHwd|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getExistsGetUserHwdsIdExists") getExistsGetUserHwdsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetUserHwdsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetUserHwdsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.deleteUserHwdDeleteUserPhotoAlbums") deleteUserHwdDeleteUserPhotoAlbums

> Deletes all user-photo-albums of this model.

```javascript
function deleteUserHwdDeleteUserPhotoAlbums(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteUserHwdDeleteUserPhotoAlbums(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.createUserHwdCreateUserPhotoAlbums") createUserHwdCreateUserPhotoAlbums

> Creates a new instance in user-photo-albums of this model.

```javascript
function createUserHwdCreateUserPhotoAlbums(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.createUserHwdCreateUserPhotoAlbums(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getUserHwdGetUserPhotoAlbums") getUserHwdGetUserPhotoAlbums

> Queries user-photo-albums of UserHwd.

```javascript
function getUserHwdGetUserPhotoAlbums(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getUserHwdGetUserPhotoAlbums(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.deleteUserHwdDeleteUserReviews") deleteUserHwdDeleteUserReviews

> Deletes all user-reviews of this model.

```javascript
function deleteUserHwdDeleteUserReviews(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteUserHwdDeleteUserReviews(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.createUserHwdCreateUserReviews") createUserHwdCreateUserReviews

> Creates a new instance in user-reviews of this model.

```javascript
function createUserHwdCreateUserReviews(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserReview|null({"key":"value"});

    controller.createUserHwdCreateUserReviews(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getUserHwdGetUserReviews") getUserHwdGetUserReviews

> Queries user-reviews of UserHwd.

```javascript
function getUserHwdGetUserReviews(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getUserHwdGetUserReviews(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.deleteUserHwdDestroyByIdUserReviews") deleteUserHwdDestroyByIdUserReviews

> Delete a related item by id for user-reviews.

```javascript
function deleteUserHwdDestroyByIdUserReviews(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-reviews |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteUserHwdDestroyByIdUserReviews(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getUserHwdFindByIdUserReviews") getUserHwdFindByIdUserReviews

> Find a related item by id for user-reviews.

```javascript
function getUserHwdFindByIdUserReviews(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-reviews |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getUserHwdFindByIdUserReviews(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.updateUserHwdUpdateByIdUserReviews") updateUserHwdUpdateByIdUserReviews

> Update a related item by id for user-reviews.

```javascript
function updateUserHwdUpdateByIdUserReviews(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-reviews |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new UserReview|null({"key":"value"});

    controller.updateUserHwdUpdateByIdUserReviews(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getUserHwdFindByIdUserPhotoAlbums") getUserHwdFindByIdUserPhotoAlbums

> Find a related item by id for user-photo-albums.

```javascript
function getUserHwdFindByIdUserPhotoAlbums(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photo-albums |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getUserHwdFindByIdUserPhotoAlbums(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.updateUserHwdUpdateByIdUserPhotoAlbums") updateUserHwdUpdateByIdUserPhotoAlbums

> Update a related item by id for user-photo-albums.

```javascript
function updateUserHwdUpdateByIdUserPhotoAlbums(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photo-albums |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.updateUserHwdUpdateByIdUserPhotoAlbums(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.deleteUserHwdDestroyByIdUserPhotoAlbums") deleteUserHwdDestroyByIdUserPhotoAlbums

> Delete a related item by id for user-photo-albums.

```javascript
function deleteUserHwdDestroyByIdUserPhotoAlbums(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photo-albums |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteUserHwdDestroyByIdUserPhotoAlbums(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getUserHwdCountUserReviews") getUserHwdCountUserReviews

> Counts user-reviews of UserHwd.

```javascript
function getUserHwdCountUserReviews(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getUserHwdCountUserReviews(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.getUserHwdCountUserPhotoAlbums") getUserHwdCountUserPhotoAlbums

> Counts user-photo-albums of UserHwd.

```javascript
function getUserHwdCountUserPhotoAlbums(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getUserHwdCountUserPhotoAlbums(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.updateUserHwdupdateAttributes") updateUserHwdupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateUserHwdupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserHwd|null({"key":"value"});

    controller.updateUserHwdupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserHwdController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new UserHwd|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".LocationNearestAirportsController") LocationNearestAirportsController

#### Get singleton instance

The singleton instance of the ``` LocationNearestAirportsController ``` class can be accessed from the API Client.

```javascript
var controller = lib.LocationNearestAirportsController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new LocationNearestAirports|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new LocationNearestAirports|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.getExistsGetLocationNearestAirportsIdExists") getExistsGetLocationNearestAirportsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetLocationNearestAirportsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetLocationNearestAirportsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.getLocationNearestAirportsGetLocation") getLocationNearestAirportsGetLocation

> Fetches belongsTo relation location.

```javascript
function getLocationNearestAirportsGetLocation(id, refresh, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| refresh |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var refresh = true;

    controller.getLocationNearestAirportsGetLocation(id, refresh, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.updateLocationNearestAirportsupdateAttributes") updateLocationNearestAirportsupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateLocationNearestAirportsupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new LocationNearestAirports|null({"key":"value"});

    controller.updateLocationNearestAirportsupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new LocationNearestAirports|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".LocationNearestAirportsController.search") search

> Find nearest airport. Based on mapping table, then falls back on upper geos then to distance

```javascript
function search(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Location Id |

#### Example Usage

```javascript

    var id = "id";

    controller.search(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".CruiseLineController") CruiseLineController

#### Get singleton instance

The singleton instance of the ``` CruiseLineController ``` class can be accessed from the API Client.

```javascript
var controller = lib.CruiseLineController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new CruiseLine|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.updateCruiseLineupdateAttributes") updateCruiseLineupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateCruiseLineupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new CruiseLine|null({"key":"value"});

    controller.updateCruiseLineupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.getCruiseLineCountCruiseShips") getCruiseLineCountCruiseShips

> Counts cruise-ships of CruiseLine.

```javascript
function getCruiseLineCountCruiseShips(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getCruiseLineCountCruiseShips(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.updateCruiseLineUpdateByIdCruiseShips") updateCruiseLineUpdateByIdCruiseShips

> Update a related item by id for cruise-ships.

```javascript
function updateCruiseLineUpdateByIdCruiseShips(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for cruise-ships |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new CruiseShip|null({"key":"value"});

    controller.updateCruiseLineUpdateByIdCruiseShips(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new CruiseLine|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new CruiseLine|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.deleteCruiseLineDeleteCruiseShips") deleteCruiseLineDeleteCruiseShips

> Deletes all cruise-ships of this model.

```javascript
function deleteCruiseLineDeleteCruiseShips(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteCruiseLineDeleteCruiseShips(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.createCruiseLineCreateCruiseShips") createCruiseLineCreateCruiseShips

> Creates a new instance in cruise-ships of this model.

```javascript
function createCruiseLineCreateCruiseShips(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new CruiseShip|null({"key":"value"});

    controller.createCruiseLineCreateCruiseShips(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.getCruiseLineGetCruiseShips") getCruiseLineGetCruiseShips

> Queries cruise-ships of CruiseLine.

```javascript
function getCruiseLineGetCruiseShips(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getCruiseLineGetCruiseShips(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.deleteCruiseLineDestroyByIdCruiseShips") deleteCruiseLineDestroyByIdCruiseShips

> Delete a related item by id for cruise-ships.

```javascript
function deleteCruiseLineDestroyByIdCruiseShips(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for cruise-ships |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteCruiseLineDestroyByIdCruiseShips(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.getCruiseLineFindByIdCruiseShips") getCruiseLineFindByIdCruiseShips

> Find a related item by id for cruise-ships.

```javascript
function getCruiseLineFindByIdCruiseShips(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for cruise-ships |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getCruiseLineFindByIdCruiseShips(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CruiseLineController.getExistsGetCruiseLinesIdExists") getExistsGetCruiseLinesIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetCruiseLinesIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetCruiseLinesIdExists(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".ExternalMappingController") ExternalMappingController

#### Get singleton instance

The singleton instance of the ``` ExternalMappingController ``` class can be accessed from the API Client.

```javascript
var controller = lib.ExternalMappingController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new ExternalMapping|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.updateExternalMappingupdateAttributes") updateExternalMappingupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateExternalMappingupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new ExternalMapping|null({"key":"value"});

    controller.updateExternalMappingupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new ExternalMapping|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new ExternalMapping|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.getLocationMapping") getLocationMapping

> TODO: Add a method description

```javascript
function getLocationMapping(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 129.070131144985;

    controller.getLocationMapping(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.getAccommodationMapping") getAccommodationMapping

> TODO: Add a method description

```javascript
function getAccommodationMapping(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 129.070131144985;

    controller.getAccommodationMapping(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".ExternalMappingController.getExistsGetExternalMappingsIdExists") getExistsGetExternalMappingsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetExternalMappingsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetExternalMappingsIdExists(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".CountryCurrenciesController") CountryCurrenciesController

#### Get singleton instance

The singleton instance of the ``` CountryCurrenciesController ``` class can be accessed from the API Client.

```javascript
var controller = lib.CountryCurrenciesController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new CountryCurrencies|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.updateCountryCurrenciesupdateAttributes") updateCountryCurrenciesupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateCountryCurrenciesupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new CountryCurrencies|null({"key":"value"});

    controller.updateCountryCurrenciesupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new CountryCurrencies|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new CountryCurrencies|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".CountryCurrenciesController.getExistsGetCountryCurrenciesIdExists") getExistsGetCountryCurrenciesIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetCountryCurrenciesIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetCountryCurrenciesIdExists(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".UserReviewInternalCommentController") UserReviewInternalCommentController

#### Get singleton instance

The singleton instance of the ``` UserReviewInternalCommentController ``` class can be accessed from the API Client.

```javascript
var controller = lib.UserReviewInternalCommentController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new UserReviewInternalComment|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.updateUserReviewInternalCommentupdateAttributes") updateUserReviewInternalCommentupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateUserReviewInternalCommentupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserReviewInternalComment|null({"key":"value"});

    controller.updateUserReviewInternalCommentupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserReviewInternalComment|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new UserReviewInternalComment|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".UserReviewInternalCommentController.getExistsGetUserReviewInternalCommentsIdExists") getExistsGetUserReviewInternalCommentsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetUserReviewInternalCommentsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetUserReviewInternalCommentsIdExists(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".SeoaliasController") SeoaliasController

#### Get singleton instance

The singleton instance of the ``` SeoaliasController ``` class can be accessed from the API Client.

```javascript
var controller = lib.SeoaliasController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new Seoalias|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new Seoalias|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.updateSeoaliasupdateAttributes") updateSeoaliasupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateSeoaliasupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new Seoalias|null({"key":"value"});

    controller.updateSeoaliasupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new Seoalias|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".SeoaliasController.getExistsGetSeoaliasesIdExists") getExistsGetSeoaliasesIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetSeoaliasesIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetSeoaliasesIdExists(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".AccommodationController") AccommodationController

#### Get singleton instance

The singleton instance of the ``` AccommodationController ``` class can be accessed from the API Client.

```javascript
var controller = lib.AccommodationController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.create") create

> Create a new instance of the model and persist it into the data source.

```javascript
function create(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new Accommodation|null({"key":"value"});

    controller.create(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.updateUpsert") updateUpsert

> Update an existing model instance or insert a new one into the data source.

```javascript
function updateUpsert(data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| data |  ``` Optional ```  | Model instance data |

#### Example Usage

```javascript

    var data = new Accommodation|null({"key":"value"});

    controller.updateUpsert(data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.find") find

> Find all instances of the model matched by filter from the data source.

```javascript
function find(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.find(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.updateAll") updateAll

> Update instances of the model matched by where from the data source.

```javascript
function updateAll(where, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var where = "where";
    var data = new Accommodation|null({"key":"value"});

    controller.updateAll(where, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.updateAccommodationupdateAttributes") updateAccommodationupdateAttributes

> Update attributes for a model instance and persist it into the data source.

```javascript
function updateAccommodationupdateAttributes(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | An object of model property name/value pairs |

#### Example Usage

```javascript

    var id = "id";
    var data = new Accommodation|null({"key":"value"});

    controller.updateAccommodationupdateAttributes(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationCountUserReviews") getAccommodationCountUserReviews

> Counts user-reviews of Accommodation.

```javascript
function getAccommodationCountUserReviews(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getAccommodationCountUserReviews(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationCountUserPhotoAlbums") getAccommodationCountUserPhotoAlbums

> Counts user-photo-albums of Accommodation.

```javascript
function getAccommodationCountUserPhotoAlbums(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getAccommodationCountUserPhotoAlbums(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.createAccommodationCreateUserPhotoAlbums") createAccommodationCreateUserPhotoAlbums

> Creates a new instance in user-photo-albums of this model.

```javascript
function createAccommodationCreateUserPhotoAlbums(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.createAccommodationCreateUserPhotoAlbums(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationCountCommerceMappings") getAccommodationCountCommerceMappings

> Counts commerce-mappings of Accommodation.

```javascript
function getAccommodationCountCommerceMappings(id, where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var id = "id";
    var where = "where";

    controller.getAccommodationCountCommerceMappings(id, where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.createAccommodationCreateCommerceMappings") createAccommodationCreateCommerceMappings

> Creates a new instance in commerce-mappings of this model.

```javascript
function createAccommodationCreateCommerceMappings(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new ExternalMapping|null({"key":"value"});

    controller.createAccommodationCreateCommerceMappings(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteAccommodationDestroyByIdUserReviews") deleteAccommodationDestroyByIdUserReviews

> Delete a related item by id for user-reviews.

```javascript
function deleteAccommodationDestroyByIdUserReviews(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-reviews |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteAccommodationDestroyByIdUserReviews(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.updateAccommodationUpdateByIdUserReviews") updateAccommodationUpdateByIdUserReviews

> Update a related item by id for user-reviews.

```javascript
function updateAccommodationUpdateByIdUserReviews(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-reviews |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new UserReview|null({"key":"value"});

    controller.updateAccommodationUpdateByIdUserReviews(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationFindByIdUserReviews") getAccommodationFindByIdUserReviews

> Find a related item by id for user-reviews.

```javascript
function getAccommodationFindByIdUserReviews(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-reviews |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getAccommodationFindByIdUserReviews(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteAccommodationDestroyByIdUserPhotoAlbums") deleteAccommodationDestroyByIdUserPhotoAlbums

> Delete a related item by id for user-photo-albums.

```javascript
function deleteAccommodationDestroyByIdUserPhotoAlbums(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photo-albums |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteAccommodationDestroyByIdUserPhotoAlbums(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.updateAccommodationUpdateByIdUserPhotoAlbums") updateAccommodationUpdateByIdUserPhotoAlbums

> Update a related item by id for user-photo-albums.

```javascript
function updateAccommodationUpdateByIdUserPhotoAlbums(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photo-albums |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new UserPhotoAlbum|null({"key":"value"});

    controller.updateAccommodationUpdateByIdUserPhotoAlbums(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationFindByIdUserPhotoAlbums") getAccommodationFindByIdUserPhotoAlbums

> Find a related item by id for user-photo-albums.

```javascript
function getAccommodationFindByIdUserPhotoAlbums(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for user-photo-albums |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getAccommodationFindByIdUserPhotoAlbums(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.createBulkReindexSearch") createBulkReindexSearch

> TODO: Add a method description

```javascript
function createBulkReindexSearch(startId, endId, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| startId |  ``` Required ```  | TODO: Add a parameter description |
| endId |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var startId = 87.3469579184181;
    var endId = 87.3469579184181;

    controller.createBulkReindexSearch(startId, endId, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getNearestAccommodations") getNearestAccommodations

> TODO: Add a method description

```javascript
function getNearestAccommodations(id, radius, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |
| radius |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 87.3469579184181;
    var radius = 87.3469579184181;

    controller.getNearestAccommodations(id, radius, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getPhotos") getPhotos

> TODO: Add a method description

```javascript
function getPhotos(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 87.3469579184181;

    controller.getPhotos(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getNearestAccommodationsByIP") getNearestAccommodationsByIP

> TODO: Add a method description

```javascript
function getNearestAccommodationsByIP(ip, radius, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| ip |  ``` Required ```  | TODO: Add a parameter description |
| radius |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var ip = "ip";
    var radius = 87.3469579184181;

    controller.getNearestAccommodationsByIP(ip, radius, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteAccommodationDestroyByIdCommerceMappings") deleteAccommodationDestroyByIdCommerceMappings

> Delete a related item by id for commerce-mappings.

```javascript
function deleteAccommodationDestroyByIdCommerceMappings(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for commerce-mappings |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.deleteAccommodationDestroyByIdCommerceMappings(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getDetailedResponse") getDetailedResponse

> TODO: Add a method description

```javascript
function getDetailedResponse(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 87.3469579184181;

    controller.getDetailedResponse(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getCount") getCount

> Count instances of the model matched by where from the data source.

```javascript
function getCount(where, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| where |  ``` Optional ```  | Criteria to match model instances |

#### Example Usage

```javascript

    var where = "where";

    controller.getCount(where, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.findOne") findOne

> Find first instance of the model matched by filter from the data source.

```javascript
function findOne(filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| filter |  ``` Optional ```  | Filter defining fields, where, include, order, offset, and limit |

#### Example Usage

```javascript

    var filter = "filter";

    controller.findOne(filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteById") deleteById

> Delete a model instance by id from the data source.

```javascript
function deleteById(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteById(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.findById") findById

> Find a model instance by id from the data source.

```javascript
function findById(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |
| filter |  ``` Optional ```  | Filter defining fields and include |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.findById(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.updateAccommodationUpdateByIdCommerceMappings") updateAccommodationUpdateByIdCommerceMappings

> Update a related item by id for commerce-mappings.

```javascript
function updateAccommodationUpdateByIdCommerceMappings(fk, id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for commerce-mappings |
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";
    var data = new ExternalMapping|null({"key":"value"});

    controller.updateAccommodationUpdateByIdCommerceMappings(fk, id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getExistsGetAccommodationsIdExists") getExistsGetAccommodationsIdExists

> Check whether a model instance exists in the data source.

```javascript
function getExistsGetAccommodationsIdExists(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | Model id |

#### Example Usage

```javascript

    var id = "id";

    controller.getExistsGetAccommodationsIdExists(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteAccommodationDeleteUserReviews") deleteAccommodationDeleteUserReviews

> Deletes all user-reviews of this model.

```javascript
function deleteAccommodationDeleteUserReviews(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteAccommodationDeleteUserReviews(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationFindByIdCommerceMappings") getAccommodationFindByIdCommerceMappings

> Find a related item by id for commerce-mappings.

```javascript
function getAccommodationFindByIdCommerceMappings(fk, id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| fk |  ``` Required ```  | Foreign key for commerce-mappings |
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var fk = "fk";
    var id = "id";

    controller.getAccommodationFindByIdCommerceMappings(fk, id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.createAccommodationCreateUserReviews") createAccommodationCreateUserReviews

> Creates a new instance in user-reviews of this model.

```javascript
function createAccommodationCreateUserReviews(id, data, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| data |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var data = new UserReview|null({"key":"value"});

    controller.createAccommodationCreateUserReviews(id, data, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationGetUserReviews") getAccommodationGetUserReviews

> Queries user-reviews of Accommodation.

```javascript
function getAccommodationGetUserReviews(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getAccommodationGetUserReviews(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteAccommodationDeleteUserPhotoAlbums") deleteAccommodationDeleteUserPhotoAlbums

> Deletes all user-photo-albums of this model.

```javascript
function deleteAccommodationDeleteUserPhotoAlbums(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteAccommodationDeleteUserPhotoAlbums(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationGetUserPhotoAlbums") getAccommodationGetUserPhotoAlbums

> Queries user-photo-albums of Accommodation.

```javascript
function getAccommodationGetUserPhotoAlbums(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getAccommodationGetUserPhotoAlbums(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.deleteAccommodationDeleteCommerceMappings") deleteAccommodationDeleteCommerceMappings

> Deletes all commerce-mappings of this model.

```javascript
function deleteAccommodationDeleteCommerceMappings(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |

#### Example Usage

```javascript

    var id = "id";

    controller.deleteAccommodationDeleteCommerceMappings(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccommodationGetCommerceMappings") getAccommodationGetCommerceMappings

> Queries commerce-mappings of Accommodation.

```javascript
function getAccommodationGetCommerceMappings(id, filter, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | PersistedModel id |
| filter |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";
    var filter = "filter";

    controller.getAccommodationGetCommerceMappings(id, filter, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getAccIdByTAId") getAccIdByTAId

> Convert TA ID to HWD id

```javascript
function getAccIdByTAId(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TA id to convert to HWD id |

#### Example Usage

```javascript

    var id = 87.3469579184181;

    controller.getAccIdByTAId(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".AccommodationController.getNearestAccommodationsByLatLon") getNearestAccommodationsByLatLon

> TODO: Add a method description

```javascript
function getNearestAccommodationsByLatLon(lat, lon, radius, limit, ratingMin, ratingMax, starsMin, starsMax, avgPriceMin, avgPriceMax, metaNoIndex, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| lat |  ``` Required ```  | TODO: Add a parameter description |
| lon |  ``` Required ```  | TODO: Add a parameter description |
| radius |  ``` Optional ```  | TODO: Add a parameter description |
| limit |  ``` Optional ```  | Number of results required |
| ratingMin |  ``` Optional ```  | TODO: Add a parameter description |
| ratingMax |  ``` Optional ```  | TODO: Add a parameter description |
| starsMin |  ``` Optional ```  | TODO: Add a parameter description |
| starsMax |  ``` Optional ```  | TODO: Add a parameter description |
| avgPriceMin |  ``` Optional ```  | TODO: Add a parameter description |
| avgPriceMax |  ``` Optional ```  | TODO: Add a parameter description |
| metaNoIndex |  ``` Optional ```  | If you want to return non indexed hotels in the results. Set to 1 for yes |

#### Example Usage

```javascript

    var lat = "lat";
    var lon = "lon";
    var radius = 87.3469579184181;
    var limit = 87;
    var ratingMin = 87;
    var ratingMax = 87;
    var starsMin = 87;
    var starsMax = 87;
    var avgPriceMin = 87;
    var avgPriceMax = 87;
    var metaNoIndex = 87;

    controller.getNearestAccommodationsByLatLon(lat, lon, radius, limit, ratingMin, ratingMax, starsMin, starsMax, avgPriceMin, avgPriceMax, metaNoIndex, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)

### ![Class: ](http://apidocs.io/img/class.png ".TripadvisorController") TripadvisorController

#### Get singleton instance

The singleton instance of the ``` TripadvisorController ``` class can be accessed from the API Client.

```javascript
var controller = lib.TripadvisorController;
```

#### ![Method: ](http://apidocs.io/img/method.png ".TripadvisorController.getCommercePhotoGetTripadvisorLocationsIdCommercePhoto") getCommercePhotoGetTripadvisorLocationsIdCommercePhoto

> TODO: Add a method description

```javascript
function getCommercePhotoGetTripadvisorLocationsIdCommercePhoto(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";

    controller.getCommercePhotoGetTripadvisorLocationsIdCommercePhoto(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".TripadvisorController.getReviews") getReviews

> TODO: Add a method description

```javascript
function getReviews(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = "id";

    controller.getReviews(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".TripadvisorController.getCommercePhotoGetTripadvisorLocationsIdPhotos") getCommercePhotoGetTripadvisorLocationsIdPhotos

> TODO: Add a method description

```javascript
function getCommercePhotoGetTripadvisorLocationsIdPhotos(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 87.3469579184181;

    controller.getCommercePhotoGetTripadvisorLocationsIdPhotos(id, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".TripadvisorController.getAccommodationsByLocation") getAccommodationsByLocation

> TODO: Add a method description

```javascript
function getAccommodationsByLocation(id, opts, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |
| opts |  ``` Optional ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 87.3469579184181;
    var opts = "opts";

    controller.getAccommodationsByLocation(id, opts, function(error, response, context) {

	});
```

#### ![Method: ](http://apidocs.io/img/method.png ".TripadvisorController.getLocation") getLocation

> TODO: Add a method description

```javascript
function getLocation(id, callback)
```
#### Parameters

| Parameter | Tags | Description |
|-----------|------|-------------|
| id |  ``` Required ```  | TODO: Add a parameter description |

#### Example Usage

```javascript

    var id = 87.3469579184181;

    controller.getLocation(id, function(error, response, context) {

	});
```

[Back to List of Controllers](#list_of_controllers)