Skip to content

Commit

Permalink
Remove app.docs()
Browse files Browse the repository at this point in the history
The swagger integration was moved to loopback-explorer.
  • Loading branch information
Miroslav Bajtoš committed Jul 22, 2014
1 parent 74e9ff7 commit c7bca9d
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var DataSource = require('loopback-datasource-juggler').DataSource
, extend = require('util')._extend
, _ = require('underscore')
, RemoteObjects = require('strong-remoting')
, swagger = require('strong-remoting/ext/swagger')
, stringUtils = require('underscore.string')
, path = require('path');

Expand Down Expand Up @@ -266,34 +265,6 @@ app.remoteObjects = function () {
return result;
}

/**
* Enable swagger REST API documentation.
*
* **Note**: This method is deprecated. Use [loopback-explorer](http://npmjs.org/package/loopback-explorer) instead.
*
* **Options**
*
* - `basePath` The basepath for your API - eg. 'http://localhost:3000'.
*
* **Example**
*
* ```js
* // enable docs
* app.docs({basePath: 'http://localhost:3000'});
* ```
*
* Run your app then navigate to
* [the API explorer](http://petstore.swagger.wordnik.com/).
* Enter your API basepath to view your generated docs.
*
* @deprecated
*/

app.docs = function (options) {
var remotes = this.remotes();
swagger(remotes, options);
}

/*!
* Get a handler of the specified type from the handler cache.
*/
Expand Down

1 comment on commit c7bca9d

@raymondfeng
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.