loopback-component-explorer/lib
Miroslav Bajtoš 0b17811546 Generate Swagger Spec 2.0 documentation
Notable breaking changes:

- The swagger output is a single object (JSON response) served
  at /explorer/swagger.json

- Methods with a single return arg without "root:true" flag
  are expected to produce an object response with a single property now,
  i.e. `{ data: arg }`.
  In v1.x, we were treating such arg as if "root:true" was specified.
  The new behaviour matches the actual implementation in strong-remoting.

- The property constraint "length" is translated to "maxLength" now.

- `operationId` includes model name now, because ids must be unique

- X-Forwarded-* headers are no longer processed, Swagger Spec 2.0
  has a way how to specify "use the scheme + host where the doc is served"

- opts.omitProtocolInBaseUrl was removed for the same reasons as
  X-Forwarded-* headers

- The deprecated opts.swaggerDistRoot was removed.
2015-08-21 18:55:32 +02:00
..
model-helper.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
route-helper.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
schema-builder.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
swagger.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
tag-builder.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
type-converter.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
type-registry.js Generate Swagger Spec 2.0 documentation 2015-08-21 18:55:32 +02:00
url-join.js Add url-join so path.join() doesn't break windows 2014-07-10 14:09:57 -05:00