* remove references to ubuntu font (Anthony Ettinger)
* Update swaggerObject when a new model was added (Pradeep Kumar Tippa)
* Refer to licenses with a link (Sam Roberts)
* Use loopback-swagger to generate swagger.json (Miroslav Bajtoš)
* Bump up strong-swagger-ui version to ^21.0.0 (Miroslav Bajtoš)
* Register loopback-explorer to app (Hage Yaapa)
* Generate Swagger Spec 2.0 documentation (Miroslav Bajtoš)
* Upgrade to strong-swagger-ui@21.0 (swagger-ui@2.1) (Miroslav Bajtoš)
* bump major version (Ryan Graham)
* Rework the module to a loopback component (Miroslav Bajtoš)
* Add `opts.host` to customize host of resource URLs (cndreiter)
* Removed branch-lock, and bumped version (Shelby Sanders)
* Corrected to propagate properties from existing items object (Shelby Sanders)
* Use strong-swagger-ui instead of swagger-ui (Miroslav Bajtoš)
* Remove public/images/throbber.gif (Miroslav Bajtoš)
* Move CSS customizations to loopbackStyles.css (Miroslav Bajtoš)
* Added Swagger fields for items and max/min(Items|Length) (Shelby Sanders)
* Corrected accidental duplication of responseMessages from merge (Shelby Sanders)
* review comments (Ying Tang)
* add more tests (Ying Tang)
* float additionalProperties and description to top (Ying Tang)
* Convert array to string for summary, note, and description. Fix additionalProperties (Ying Tang)
* back out changes of id to URI (Ying Tang)
* Uri id and $ref, join description (Ying Tang)
* propertyName, not property (Ying Tang)
* fix resource listing and remove id from each property (Ying Tang)
* remove id fields from required array (Ying Tang)
* remove required from sub-schema (Ying Tang)
* bump version (Ying Tang)
* add $ref and remove type for models (Ying Tang)
* Changed Swagger() to omit resources with no content (Shelby Sanders)
* Added event emission for swaggerResources to support customization (Shelby Sanders)
* Corrected handling of type for operation, including containers (Shelby Sanders)
* Corrected handling for absent settings.additionalProperties (Shelby Sanders)
* Added support for public in order to hide operations from Swagger (Shelby Sanders)
* added reference to settings for additional properties (Jake Ayala)
* Protected against non-Model generation requests (Shelby Sanders)
* Corrected merge issues (Shelby Sanders)
* Added padding to content well in order to counteract changes in SwaggerUI (Shelby Sanders)
* Added support for scanning accepts params for Model references (Shelby Sanders)
* Changed addRoute() to honor X-Forwarded-Host (Shelby Sanders)
* Removed branch-lock for loopback (Shelby Sanders)
* Changed to possibly pull model description from ctor.settings (Shelby Sanders)
* Corrected generateModelDefinition() to scan for model references nested in other models (Shelby Sanders)
* Corrected prepareDataType() to handle collections and nesting, and changed to always and only use responseMessages (Shelby Sanders)
* Corrected generateModelDefinition() to scan for model references in remote returns and errors (Shelby Sanders)
* Corrected default for consumes+produces (Shelby Sanders)
* Ported prepareDataType() from old strong-remoting:ext/swagger.js (Shelby Sanders)
* Corrected issues with merge of 2.x changes (Shelby Sanders)
* Load swagger ui from `swagger-ui` package instead. (Samuel Reed)
* Ported extensions for more Swagger 1.2 metadata, returns+errors as responseMessages, consumes+produces, and X-Forwarded-Proto for reverse-proxying from HTTPS to HTTP (Shelby Sanders)
* Upgraded to SwaggerUI 2.0.18 (Shelby Sanders)
* Added support for toggling Model and Schema, and added support for primitives in StatusCodeView (Shelby Sanders)
* Ensure Response Content Type is shown regardless of Response Class (Shelby Sanders)
* Reverted to use special loading logic from loopback-explorer (Shelby Sanders)
* Updated to latest Swagger-UI for better responseMessage signature handling (Shelby Sanders)
* Upgraded to latest Swagger-UI for 1.2 support (Shelby Sanders)
* Correct description of collections of object and nested (Shelby Sanders)
* Add indication of response being a collection (Shelby Sanders)
This has to be done before release because our staging registry is
essentialy a continusous deployment pipeline that makes use of the
major and minor version of master.
Rework the exported function to conform to the component convention:
var loopback = require('loopback');
var explorer = require('loopback-explorer');
var app = loopback();
explorer(app, options);
Allow users to mount explorer as a middleware too:
app.use('/explorer', explorer.routes(app, options));
- drop dependency on express
- drop support for loopback 1.x
- add a new option "mountPath" to specify where to mount the explorer UI
and swagger metadata
- describe upgrading from v1.x in README
* upstream/master: (53 commits)
1.8.0
Add opts.omitProtocolInBaseUrl
Fix tests broken by fa3035c (#96)
Fix model description getting lost
1.7.2
Allow submitting token input with empty value to remove token.
Fix duplicate stylesheet issue
Fix explorer tests for different line endings on Windows
1.7.1
Remove unused external font "Droid Sans".
1.7.0
Made API doc of class use the http.path of the class if available, or the name of the class as a fallback
v1.6.4
Prevent double slash in the resource URLs
v1.6.3
Allow `uiDirs` to be defined as a String
Fix bad CLA URL in CONTRIBUTING.md
Add X-UA-Compatible tag
v1.6.2
Move 200 response to `type` on the operation object. See #75.
...
* Allow submitting token input with empty value to remove token. (Samuel Reed)
* Fix duplicate stylesheet issue (Pradnya Baviskar)
* Fix explorer tests for different line endings on Windows (Pradnya Baviskar)
This change trims 134 modules from the dependency tree, many of which
were duplicate depdencies between the 4 lodash.function modules used
and their sub-dependencies.
Before:
$ npm ls | wc -l
494
$ du -sch node_modules/lodash*
432K node_modules/lodash.assign
660K node_modules/lodash.clonedeep
96K node_modules/lodash.defaults
980K node_modules/lodash.pick
2.1M total
After:
$ npm ls | wc -l
360
$ du -sch node_modules/lodash*
964K node_modules/lodash
964K total
Refactor the way how loopback types are converted to swagger data types.
- `modelHelper.LDLPropToSwaggerDataType` is responsible for
producing a valid Swagger Data Type object from LDL object
(be it a property, accepts item or returns item).
- LDLPropToSwaggerDataType picks only fields that are part
of the swagger spec, everything else is excluded from the result.
It's up to the caller to add extra fields like `description`.
- refactor `routeHelper.extendWithType` to accept an additional arg:
the original LDL object. This way it's possible to copy all
type-specific fields to the output object and don't add anything
else.