From c7bca9da78375bf7ba664c4556ca06c3a21471bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 22 Jul 2014 15:08:23 +0200 Subject: [PATCH] Remove `app.docs()` The swagger integration was moved to loopback-explorer. --- lib/application.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lib/application.js b/lib/application.js index 97bb1989..84884098 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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'); @@ -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. */