From 8f08398c30ad4f1cc745a16abfe5c017e5d8b461 Mon Sep 17 00:00:00 2001 From: Candy Date: Fri, 4 Nov 2016 16:47:12 -0400 Subject: [PATCH] Update doc links --- common/models/user.js | 2 +- lib/current-context.js | 6 +-- lib/model.js | 8 +-- lib/persisted-model.js | 100 +++++++++++++++++------------------ server/middleware/context.js | 2 +- server/middleware/rest.js | 4 +- test/remoting.integration.js | 2 +- 7 files changed, 62 insertions(+), 62 deletions(-) diff --git a/common/models/user.js b/common/models/user.js index a5ebd313..bfc5607a 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -54,7 +54,7 @@ var debug = require('debug')('loopback:user'); * @property {String} email Must be valid email. * @property {Boolean} emailVerified Set when a user's email has been verified via `confirm()`. * @property {String} verificationToken Set when `verify()` is called. - * @property {String} realm The namespace the user belongs to. See [Partitioning users with realms](https://docs.strongloop.com/display/public/LB/Partitioning+users+with+realms) for details. + * @property {String} realm The namespace the user belongs to. See [Partitioning users with realms](http://loopback.io/doc/en/lb2/Partitioning-users-with-realms.html) for details. * @property {Object} settings Extends the `Model.settings` object. * @property {Boolean} settings.emailVerificationRequired Require the email verification * process before allowing a login. diff --git a/lib/current-context.js b/lib/current-context.js index f85bfff5..b9eb6b72 100644 --- a/lib/current-context.js +++ b/lib/current-context.js @@ -14,20 +14,20 @@ module.exports = function(loopback) { throw new Error(g.f( '%s was removed in version 3.0. See %s for more details.', 'loopback.getCurrentContext()', - 'https://docs.strongloop.com/display/APIC/Using%20current%20context')); + 'http://loopback.io/doc/en/lb2/Using-current-context.html')); }; loopback.runInContext = function(fn) { throw new Error(g.f( '%s was removed in version 3.0. See %s for more details.', 'loopback.runInContext()', - 'https://docs.strongloop.com/display/APIC/Using%20current%20context')); + 'http://loopback.io/doc/en/lb2/Using-current-context.html')); }; loopback.createContext = function(scopeName) { throw new Error(g.f( '%s was removed in version 3.0. See %s for more details.', 'loopback.createContext()', - 'https://docs.strongloop.com/display/APIC/Using%20current%20context')); + 'http://loopback.io/doc/en/lb2/Using-current-context.html')); }; }; diff --git a/lib/model.js b/lib/model.js index 53e90794..a8fe7ebd 100644 --- a/lib/model.js +++ b/lib/model.js @@ -111,7 +111,7 @@ module.exports = function(registry) { /** * The `loopback.Model.extend()` method calls this when you create a model that extends another model. * Add any setup or configuration code you want executed when the model is created. - * See [Setting up a custom model](http://docs.strongloop.com/display/LB/Extending+built-in+models#Extendingbuilt-inmodels-Settingupacustommodel). + * See [Setting up a custom model](http://loopback.io/doc/en/lb2/Extending-built-in-models.html#setting-up-a-custom-model). */ Model.setup = function() { @@ -389,7 +389,7 @@ module.exports = function(registry) { * Get the `Application` object to which the Model is attached. * * @callback {Function} callback Callback function called with `(err, app)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Application} app Attached application object. * @end */ @@ -405,7 +405,7 @@ module.exports = function(registry) { /** * Enable remote invocation for the specified method. - * See [Remote methods](http://docs.strongloop.com/display/LB/Remote+methods) for more information. + * See [Remote methods](http://loopback.io/doc/en/lb2/Remote-methods.html) for more information. * * Static method example: * ```js @@ -415,7 +415,7 @@ module.exports = function(registry) { * * @param {String} name The name of the method. * @param {Object} options The remoting options. - * See [Remote methods - Options](http://docs.strongloop.com/display/LB/Remote+methods#Remotemethods-Options). + * See [Remote methods - Options](http://loopback.io/doc/en/lb2/Remote-methods.html#options). */ Model.remoteMethod = function(name, options) { diff --git a/lib/persisted-model.js b/lib/persisted-model.js index 3a5af820..4f4a3cbb 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -97,7 +97,7 @@ module.exports = function(registry) { * @param {Object|Object[]} [data] Optional data argument. Can be either a single model instance or an array of instances. * * @callback {Function} callback Callback function called with `cb(err, obj)` signature. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} models Model instances or null. */ @@ -109,7 +109,7 @@ module.exports = function(registry) { * Update or insert a model instance * @param {Object} data The model instance data to insert. * @callback {Function} callback Callback function called with `cb(err, obj)` signature. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} model Updated model instance. */ @@ -128,10 +128,10 @@ module.exports = function(registry) { * { key: val, key2: {gt: 'val2'}, ...} * ``` *
see - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforothermethods). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-other-methods). * @param {Object} data The model instance data to insert. * @callback {Function} callback Callback function called with `cb(err, obj)` signature. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} model Updated model instance. */ @@ -148,7 +148,7 @@ module.exports = function(registry) { * @options {Object} [options] Options for replaceOrCreate * @property {Boolean} validate Perform validation before saving. Default is true. * @callback {Function} callback Callback function called with `cb(err, obj)` signature. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} model Replaced model instance. */ @@ -165,24 +165,24 @@ module.exports = function(registry) { * * @options {Object} [filter] Optional Filter object; see below. * @property {String|Object|Array} fields Identify fields to include in return result. - *
See [Fields filter](http://docs.strongloop.com/display/LB/Fields+filter). + *
See [Fields filter](http://loopback.io/doc/en/lb2/Fields-filter.html). * @property {String|Object|Array} include See PersistedModel.include documentation. - *
See [Include filter](http://docs.strongloop.com/display/LB/Include+filter). + *
See [Include filter](http://loopback.io/doc/en/lb2/Include-filter.html). * @property {Number} limit Maximum number of instances to return. - *
See [Limit filter](http://docs.strongloop.com/display/LB/Limit+filter). + *
See [Limit filter](http://loopback.io/doc/en/lb2/Limit-filter.html). * @property {String} order Sort order: either "ASC" for ascending or "DESC" for descending. - *
See [Order filter](http://docs.strongloop.com/display/LB/Order+filter). + *
See [Order filter](http://loopback.io/doc/en/lb2/Order-filter.html). * @property {Number} skip Number of results to skip. - *
See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter). + *
See [Skip filter](http://loopback.io/doc/en/lb2/Skip-filter.html). * @property {Object} where Where clause, like * ``` * {where: {key: val, key2: {gt: val2}, ...}} * ``` *
See - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforqueries). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-queries). * @param {Object} data Data to insert if object matching the `where` filter is not found. * @callback {Function} callback Callback function called with `cb(err, instance, created)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Model instance matching the `where` filter, if found. * @param {Boolean} created True if the instance does not exist and gets created. */ @@ -199,7 +199,7 @@ module.exports = function(registry) { * @param {id} id Identifier of object (primary key value). * * @callback {Function} callback Callback function called with `(err, exists)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Boolean} exists True if the instance with the specified ID exists; false otherwise. */ @@ -213,11 +213,11 @@ module.exports = function(registry) { * @param {*} id Primary key value * @options {Object} [filter] Optional Filter JSON object; see below. * @property {String|Object|Array} fields Identify fields to include in return result. - *
See [Fields filter](http://docs.strongloop.com/display/LB/Fields+filter). + *
See [Fields filter](http://loopback.io/doc/en/lb2/Fields-filter.html). * @property {String|Object|Array} include See PersistedModel.include documentation. - *
See [Include filter](http://docs.strongloop.com/display/LB/Include+filter). + *
See [Include filter](http://loopback.io/doc/en/lb2/Include-filter.html). * @callback {Function} callback Callback function called with `(err, instance)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Model instance matching the specified ID or null if no instance matches. */ @@ -227,28 +227,28 @@ module.exports = function(registry) { /** * Find all model instances that match `filter` specification. - * See [Querying models](http://docs.strongloop.com/display/LB/Querying+models). + * See [Querying models](http://loopback.io/doc/en/lb2/Querying-data.html). * * @options {Object} [filter] Optional Filter JSON object; see below. * @property {String|Object|Array} fields Identify fields to include in return result. - *
See [Fields filter](http://docs.strongloop.com/display/LB/Fields+filter). + *
See [Fields filter](http://loopback.io/doc/en/lb2/Fields-filter.html). * @property {String|Object|Array} include See PersistedModel.include documentation. - *
See [Include filter](http://docs.strongloop.com/display/LB/Include+filter). + *
See [Include filter](http://loopback.io/doc/en/lb2/Include-filter.html). * @property {Number} limit Maximum number of instances to return. - *
See [Limit filter](http://docs.strongloop.com/display/LB/Limit+filter). + *
See [Limit filter](http://loopback.io/doc/en/lb2/Limit-filter.html). * @property {String} order Sort order: either "ASC" for ascending or "DESC" for descending. - *
See [Order filter](http://docs.strongloop.com/display/LB/Order+filter). + *
See [Order filter](http://loopback.io/doc/en/lb2/Order-filter.html). * @property {Number} skip Number of results to skip. - *
See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter). + *
See [Skip filter](http://loopback.io/doc/en/lb2/Skip-filter.html). * @property {Object} where Where clause, like * ``` * { where: { key: val, key2: {gt: 'val2'}, ...} } * ``` *
See - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforqueries). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-queries). * * @callback {Function} callback Callback function called with `(err, returned-instances)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Array} models Model instances matching the filter, or null if none found. */ @@ -263,22 +263,22 @@ module.exports = function(registry) { * * @options {Object} [filter] Optional Filter JSON object; see below. * @property {String|Object|Array} fields Identify fields to include in return result. - *
See [Fields filter](http://docs.strongloop.com/display/LB/Fields+filter). + *
See [Fields filter](http://loopback.io/doc/en/lb2/Fields-filter.html). * @property {String|Object|Array} include See PersistedModel.include documentation. - *
See [Include filter](http://docs.strongloop.com/display/LB/Include+filter). + *
See [Include filter](http://loopback.io/doc/en/lb2/Include-filter.html). * @property {String} order Sort order: either "ASC" for ascending or "DESC" for descending. - *
See [Order filter](http://docs.strongloop.com/display/LB/Order+filter). + *
See [Order filter](http://loopback.io/doc/en/lb2/Order-filter.html). * @property {Number} skip Number of results to skip. - *
See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter). + *
See [Skip filter](http://loopback.io/doc/en/lb2/Skip-filter.html). * @property {Object} where Where clause, like * ``` * {where: { key: val, key2: {gt: 'val2'}, ...} } * ``` *
See - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforqueries). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-queries). * * @callback {Function} callback Callback function called with `(err, returned-instance)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Array} model First model instance that matches the filter or null if none found. */ @@ -294,10 +294,10 @@ module.exports = function(registry) { * {key: val, key2: {gt: 'val2'}, ...} * ``` *
See - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforothermethods). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-other-methods). * * @callback {Function} callback Optional callback function called with `(err, info)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} info Additional information about the command outcome. * @param {Number} info.count Number of instances (rows, documents) destroyed. */ @@ -332,11 +332,11 @@ module.exports = function(registry) { * { key: val, key2: {gt: 'val2'}, ...} * ``` *
see - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforothermethods). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-other-methods). * @param {Object} data Object containing data to replace matching instances, if any. * * @callback {Function} callback Callback function called with `(err, info)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} info Additional information about the command outcome. * @param {Number} info.count Number of instances (rows, documents) updated. * @@ -354,7 +354,7 @@ module.exports = function(registry) { * Destroy model instance with the specified ID. * @param {*} id The ID value of model instance to delete. * @callback {Function} callback Callback function called with `(err)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). */ PersistedModel.destroyById = function deleteById(id, cb) { throwNotAttached(this.modelName, 'deleteById'); @@ -377,9 +377,9 @@ module.exports = function(registry) { * { key: val, key2: {gt: 'val2'}, ...} * ``` *
See - * [Where filter](https://docs.strongloop.com/display/LB/Where+filter#Wherefilter-Whereclauseforothermethods). + * [Where filter](http://loopback.io/doc/en/lb2/Where-filter.html#where-clause-for-other-methods). * @callback {Function} callback Callback function called with `(err, count)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Number} count Number of instances updated. */ @@ -395,7 +395,7 @@ module.exports = function(registry) { * @property {Boolean} throws If true, throw a validation error; WARNING: This can crash Node. * If false, report the error via callback. Default is false. * @callback {Function} callback Optional callback function called with `(err, obj)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Model instance saved or created. */ @@ -501,7 +501,7 @@ module.exports = function(registry) { * @param {String} name Name of property. * @param {Mixed} value Value of property. * @callback {Function} callback Callback function called with `(err, instance)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Updated instance. */ @@ -515,7 +515,7 @@ module.exports = function(registry) { * Triggers: `validation`, `save` and `update` hooks * @param {Object} data Data to update. * @callback {Function} callback Callback function called with `(err, instance)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Updated instance. */ @@ -532,7 +532,7 @@ module.exports = function(registry) { * @options {Object} [options] Options for replace * @property {Boolean} validate Perform validation before saving. Default is true. * @callback {Function} callback Callback function called with `(err, instance)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Replaced instance. */ @@ -550,7 +550,7 @@ module.exports = function(registry) { * @options {Object} [options] Options for replace * @property {Boolean} validate Perform validation before saving. Default is true. * @callback {Function} callback Callback function called with `(err, instance)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Replaced instance. */ @@ -561,7 +561,7 @@ module.exports = function(registry) { /** * Reload object from persistence. Requires `id` member of `object` to be able to call `find`. * @callback {Function} callback Callback function called with `(err, instance)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} instance Model instance. */ @@ -980,7 +980,7 @@ module.exports = function(registry) { * @param {Number} since Find deltas since this checkpoint. * @param {Array} remoteChanges An array of change objects. * @callback {Function} callback Callback function called with `(err, result)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Object} result Object with `deltas` and `conflicts` properties; see [Change.diff()](#change-diff) for details. */ @@ -995,7 +995,7 @@ module.exports = function(registry) { * @param {Number} since Return only changes since this checkpoint. * @param {Object} filter Include only changes that match this filter, the same as for [#persistedmodel-find](find()). * @callback {Function} callback Callback function called with `(err, changes)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Array} changes An array of [Change](#change) objects. */ @@ -1059,7 +1059,7 @@ module.exports = function(registry) { * Get the current checkpoint ID. * * @callback {Function} callback Callback function called with `(err, currentCheckpointId)` arguments. Required. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Number} currentCheckpointId Current checkpoint ID. */ @@ -1076,7 +1076,7 @@ module.exports = function(registry) { * @param {Object} [options] * @param {Object} [options.filter] Replicate models that match this filter * @callback {Function} [callback] Callback function called with `(err, conflicts)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {Conflict[]} conflicts A list of changes that could not be replicated due to conflicts. * @param {Object} checkpoints The new checkpoints to use as the "since" * argument for the next replication. @@ -1543,7 +1543,7 @@ module.exports = function(registry) { * Get the source identifier for this model or dataSource. * * @callback {Function} callback Callback function called with `(err, id)` arguments. - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). * @param {String} sourceId Source identifier for the model or dataSource. */ @@ -1702,7 +1702,7 @@ module.exports = function(registry) { * Handle a change error. Override this method in a subclassing model to customize * change error handling. * - * @param {Error} err Error object; see [Error object](http://docs.strongloop.com/display/LB/Error+object). + * @param {Error} err Error object; see [Error object](http://loopback.io/doc/en/lb2/Error-object.html). */ PersistedModel.handleChangeError = function(err, operationName) { @@ -1744,7 +1744,7 @@ module.exports = function(registry) { }; /** - * Create a change stream. [See here for more info](http://docs.strongloop.com/pages/viewpage.action?pageId=6721710) + * Create a change stream. [See here for more info](http://loopback.io/doc/en/lb2/Realtime-server-sent-events.html) * * @param {Object} options * @param {Object} options.where Only changes to models matching this where filter will be included in the `ChangeStream`. diff --git a/server/middleware/context.js b/server/middleware/context.js index be2a4582..0d816a44 100644 --- a/server/middleware/context.js +++ b/server/middleware/context.js @@ -9,5 +9,5 @@ module.exports = function() { throw new Error(g.f( '%s middleware was removed in version 3.0. See %s for more details.', 'loopback#context', - 'https://docs.strongloop.com/display/APIC/Using%20current%20context')); + 'http://loopback.io/doc/en/lb2/Using-current-context.html')); }; diff --git a/server/middleware/rest.js b/server/middleware/rest.js index 00a0961d..cf61adc0 100644 --- a/server/middleware/rest.js +++ b/server/middleware/rest.js @@ -24,7 +24,7 @@ module.exports = rest; * ```js * app.use(loopback.rest()); * ``` - * For more information, see [Exposing models over a REST API](http://docs.strongloop.com/display/DOC/Exposing+models+over+a+REST+API). + * For more information, see [Exposing models over a REST API](http://loopback.io/doc/en/lb2/Exposing-models-over-REST.html). * @header loopback.rest() */ @@ -44,7 +44,7 @@ function rest() { throw new Error(g.f( '%s was removed in version 3.0. See %s for more details.', 'remoting.context option', - 'https://docs.strongloop.com/display/APIC/Using%20current%20context')); + 'http://loopback.io/doc/en/lb2/Using-current-context.html')); } if (app.isAuthEnabled) { diff --git a/test/remoting.integration.js b/test/remoting.integration.js index 75a5f5f4..b4368601 100644 --- a/test/remoting.integration.js +++ b/test/remoting.integration.js @@ -99,7 +99,7 @@ describe('remoting - integration', function() { ]; // The list of methods is from docs: - // https://docs.strongloop.com/display/public/LB/Exposing+models+over+REST + // http://loopback.io/doc/en/lb2/Exposing-models-over-REST.html expect(methods).to.include.members(expectedMethods); });