Commit Graph

293 Commits

Author SHA1 Message Date
Samuel Reed a4a36f5602 Refactor key translations between LDL & Swagger.
Route.accepts & route.returns can now share these translations.
2014-07-06 09:50:24 -05:00
Samuel Reed 4c0ce42001 Refactoring swagger 1.2 rework.
Added comments, api version, and better Swagger 1.2 compat.
2014-07-05 14:32:00 -05:00
Raymond Feng d34304afc3 Make sure body parameter is shown. 2014-07-05 10:21:06 -07:00
Samuel Reed 67bb10b6a4 Some swagger 1.2 migration cleanup.
- Added array items definition.
- Ignored body when specified via arg.http.source.
2014-07-05 10:54:19 -05:00
Raymond Feng 2f8506c81b Fix api resource path and type ref to models. 2014-07-05 00:30:26 -07:00
Samuel Reed eb31787fbc Swagger 1.2 compatability. Moved strong-remoting/ext/swagger to this module.
Will now correctly return model schemas.

Moved swagger.js tests to this module.
2014-07-04 17:09:03 -05:00
Samuel Reed 56003f0178 Load swagger ui from `swagger-ui` package instead.
Added option `swaggerDistRoot` for specific file overrides.
2014-07-04 14:28:47 -05:00
Miroslav Bajtoš 2284820b66 Merge tag 'v1.1.1'
1.1.1
2014-05-28 19:27:19 +02:00
Miroslav Bajtoš a7c229ef84 Merge branch 'release/1.1.1' into production 2014-05-28 19:27:14 +02:00
Miroslav Bajtoš 5bf0223d71 1.1.1 2014-05-28 19:26:51 +02:00
Miroslav Bajtoš d5b433c148 Merge pull request #13 from strongloop/feature/support-loopback-2.x
package.json: add support for loopback 2.x
2014-05-28 19:21:17 +02:00
Miroslav Bajtoš e2a19a9578 package.json: add support for loopback 2.x
Modify the peer dependency version spec to include 2.x versions.
2014-05-28 19:06:08 +02:00
Raymond Feng ea267a7573 Merge pull request #12 from pennycoders/master
Make sure X-Powered-By header is disabled
2014-04-20 22:41:30 -07:00
Alex Pica ee79c4bf5d Make sure X-Powered-By header is disabled 2014-04-21 05:29:01 +03:00
Raymond Feng bc1bde89c5 Fix license url 2014-02-17 16:09:05 -08:00
Raymond Feng d93c9557af Update to dual MIT/StrongLoop license 2014-02-17 16:04:12 -08:00
Miroslav Bajtoš 28b08f481a Merge tag 'v1.1.0'
v1.1.0
2014-01-14 09:42:59 +01:00
Miroslav Bajtoš e46080254c Merge branch 'release/1.1.0' into production 2014-01-14 09:42:50 +01:00
Miroslav Bajtoš d47a060b9d v1.1.0 2014-01-14 09:42:06 +01:00
Miroslav Bajtoš 6615013ef4 Merge pull request #10 from strongloop/feature/use-restApiRoot
Use app.restApiRoot
2014-01-14 00:20:46 -08:00
Miroslav Bajtoš 2d15b9c052 Bump up loopback min version to 1.5 2014-01-14 08:34:34 +01:00
Raymond Feng 24d8215eef Merge tag 'v1.0.2'
1.0.2
2014-01-13 13:43:50 -08:00
Raymond Feng 4a26b8d1ba Merge branch 'release/1.0.2' into production 2014-01-13 13:43:44 -08:00
Raymond Feng b4f91a57a2 Bump version 2014-01-13 13:42:14 -08:00
Miroslav Bajtoš 8b6fc55de8 Use `app.get('restApiRoot')` as default basePath 2014-01-07 16:56:58 +01:00
Miroslav Bajtoš 6c4e780ab8 Replace strong-remoting ext/swagger with app.docs
Use `app.docs()` to expose Swagger specs. This way we don't have to
depend on loopback's dependency strong-remoting.
2014-01-07 16:13:34 +01:00
Ritchie Martori 7b091d28d1 Merge pull request #5 from strongloop/feature/fix-readme
README: mount REST at /api in the sample code
2013-12-09 14:03:18 -08:00
Miroslav Bajtos 2686f254cf README: mount REST at /api in the sample code 2013-12-09 18:12:30 +01:00
Miroslav Bajtoš 066511775a Merge pull request #4 from strongloop/feature/fix-failing-unit-test
Reorder middleware to fix unit-test failures.
2013-12-09 08:17:04 -08:00
Miroslav Bajtoš 6040be6ff3 Merge pull request #3 from strongloop/feature/fix-requires-of-nested-modules
Fix loading of loopback dependencies.
2013-12-09 08:15:32 -08:00
Miroslav Bajtos 1ca2d2ccad Reorder middleware to fix unit-test failures.
LoopBack REST adapter owns the whole URL space and does not let other
middleware handle same URLs. It's possible to circumvent this measure
by installing the explorer middleware before the REST middleware.
2013-12-09 11:44:46 +01:00
Miroslav Bajtos eb06404157 Fix loading of loopback dependencies.
Loopback-explorer loads express and strong-remoting from loopback's
`node_modules` folder. This fails when one of those dependencies
was installed to the parent project, e.g. as a peer dependency.

    app/node_modules
     +- express # <- express installed as peer to loopback
     +- loopback
         +- node_modules # <- express is not there

As of this commit, loopback-explorer will retry the `require()` call
without `loopback/node_modules` prefix if the first require fails.

    1. `require('loopback/node_modules/express')`
    2. `require('express')`

The change should fix (some of) unit-tests failures in
  https://github.com/strongloop/loopback-workspace
2013-12-09 11:37:38 +01:00
Ritchie Martori f872275e10 Merge tag 'v1.0.1'
1.0.1
2013-12-04 07:20:35 -08:00
Ritchie Martori f37419d29e Merge branch 'release/1.0.1' into production 2013-12-04 07:20:20 -08:00
Ritchie Martori dbaf686db4 Bump version 2013-12-04 07:20:05 -08:00
Miroslav Bajtoš f563a608e8 Merge pull request #2 from strongloop/feature/support-custom-api-path
Support custom basePath
2013-11-29 08:41:03 -08:00
Miroslav Bajtos a33c067ffa Support custom basePath
Recognize the `basePath` passed to swagger extension and use it in
the webpage to construct the correct `discoveryUrl`.
2013-11-29 16:26:16 +01:00
Miroslav Bajtos 3ebbcedcd9 Convert public/index.html from CRLF to LF.
No code changes.
2013-11-29 16:21:42 +01:00
Ritchie Martori d647586e0d Merge pull request #1 from strongloop/1.0.0
Initial explorer
2013-11-08 08:39:54 -08:00
Ritchie Martori 8cf1d2e486 Move supertest to dev deps 2013-11-05 11:28:29 -08:00
Ritchie Martori 1b8de3673c Readme updates 2013-11-05 11:24:48 -08:00
Ritchie Martori f3d6cb9b54 Initial explorer 2013-11-05 11:16:59 -08:00
Ritchie Martori e95d3f1f63 Initial commit 2013-11-05 09:59:05 -08:00