Commit Graph

148 Commits

Author SHA1 Message Date
Miroslav Bajtoš 72f36b56bf Merge pull request #58 from strongloop/godaddy-improvements-1
Godaddy improvements - round 1
2014-10-13 18:46:57 +02:00
Miroslav Bajtoš be36f11629 Use `1.0.0` as the default app version.
Change the default version number returned when the version number
cannot be read from `package.json` in CWD.
2014-10-13 17:30:19 +02:00
Miroslav Bajtoš 622f6176f3 Extend `consumes` and `produces` metadata
- Include XML content-types for both input and output
 - Include JSONP (javascript) content-types for output
2014-10-13 17:29:37 +02:00
Miroslav Bajtoš 4d0e711087 route-helper: include `notes` and `deprecated` 2014-10-13 16:32:12 +02:00
Shelby Sanders 37179f3e61 Pull model description from ctor.settings first 2014-10-13 15:27:15 +02:00
Miroslav Bajtoš 65be2833a2 Merge tag 'v1.3.0'
1.3.0
2014-10-08 19:23:36 +02:00
Miroslav Bajtoš c95366eb4c Merge branch 'release/1.3.0' into production 2014-10-08 19:23:15 +02:00
Miroslav Bajtoš 546a122eaa 1.3.0 2014-10-08 19:22:45 +02:00
Miroslav Bajtoš 8aa8184c6b Merge pull request #53 from strongloop/feature/add-cors
swagger: allow cross-origin requests
2014-10-08 19:19:53 +02:00
Miroslav Bajtoš f645c6db0d swagger: allow cross-origin requests
Add CORS middleware to the swagger app.

Add a configuration option allowing developers to disable CORS.
2014-10-08 07:57:50 +02:00
Miroslav Bajtoš 520b0b91d9 Merge pull request #55 from STRML/sortEndpoints
Sort endpoints by letter.
2014-10-07 14:18:19 +02:00
Samuel Reed 0a35cdb4af Sort endpoints by letter.
Merged from swagger-ui's index.html.

Previously, endpoints were sorted in the order they were defined.
2014-10-07 13:56:30 +02:00
Miroslav Bajtoš 174aff7fbe Merge pull request #56 from STRML/syntaxHighlighting
Add syntax highlighting styles & highlight threshold.
2014-10-07 13:52:43 +02:00
Samuel Reed ad68695009 Add syntax highlighting styles & highlight threshold.
Previously, highlighting classes were being added to the DOM but had no CSS
so the user just saw black - a lot of CPU usage for nothing.

These styles now attractively and minimally style resposes so long as
they are below a certain threshold, as well as model schemas.

The highlightSizeThreshold fixes the long hang users would
see when large responses were returned.
2014-10-07 11:07:41 +02:00
Ryan Graham 64c25a8c3c Add contribution guidelines
Uses https://cla.strongloop.com
2014-10-01 17:55:03 -07:00
Raymond Feng eaf16b9aa8 Merge tag 'v1.2.11'
1.2.11
2014-09-22 09:05:36 -07:00
Raymond Feng 76f719c3e8 Merge branch 'release/1.2.11' into production 2014-09-22 09:05:32 -07:00
Raymond Feng b488fa3c25 Bump version 2014-09-22 09:04:47 -07:00
Raymond Feng b212ab1f20 Merge pull request #50 from strongloop/feature/fix-issue-49
Fix how the array of models is iterated
2014-09-22 09:03:27 -07:00
Raymond Feng 282b70e1e4 Fix how the array of models is iterated
https://github.com/strongloop/loopback-explorer/issues/49
2014-09-19 09:35:11 -07:00
Raymond Feng 4757d89f10 Merge tag 'v1.2.10'
1.2.10
2014-09-05 15:45:36 -07:00
Raymond Feng 72d0f9e4d6 Merge branch 'release/1.2.10' into production 2014-09-05 15:45:26 -07:00
Raymond Feng 91caa92be7 Bump version 2014-09-05 15:44:50 -07:00
Raymond Feng ea4dc17e58 Merge pull request #44 from strongloop/feature/add-other-models
Make sure nested/referenced models are mapped to swagger
2014-09-05 15:40:27 -07:00
Raymond Feng bf3f438a58 Merge pull request #45 from clarkorz/feature/add-other-models
Make sure nested/referenced models in array are mapped to swagger
2014-08-29 08:22:07 -07:00
Clark Wang acf00f3254 Make sure nested/referenced models in array are mapped to swagger
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
2014-08-29 16:06:05 +08:00
Raymond Feng d083feab36 Make sure nested/referenced models are mapped to swagger 2014-08-28 15:20:03 -07:00
Raymond Feng 0efb4fd4b4 Merge tag 'v1.2.9'
1.2.9
2014-08-15 23:41:39 -07:00
Raymond Feng 03bbc8f1fb Merge branch 'release/1.2.9' into production 2014-08-15 23:41:32 -07:00
Raymond Feng 937ec98c97 Bump version 2014-08-15 23:37:10 -07:00
Raymond Feng 0d182939a0 Merge pull request #38 from STRML/form-encoding
Newest Swagger UI requires application/x-www-form-urlencoded.
2014-08-15 23:36:34 -07:00
Raymond Feng e0f81b5436 Merge pull request #37 from STRML/swagger-ui-dist
Use `dist` property from swagger-ui package.
2014-08-15 23:36:05 -07:00
Raymond Feng 4be0fb2742 Merge pull request #36 from nvdnkpr/master
Fixed undefined modelClass when using polymorphic relations
2014-08-15 23:13:01 -07:00
Samuel Reed d98a7877d4 Newest Swagger UI requires application/x-www-form-urlencoded.
UI will fail to POST if this consumes type is not specified.
2014-08-12 12:45:38 -04:00
Samuel Reed e7efa82640 Use `dist` property from swagger-ui package.
This removes the hardcoded local `node_modules` lookup for swagger-ui,
which will break if the parent installs swagger-ui itself.

This is useful if, for example, the latest swagger-ui breaks
loopback-explorer, and the parent project wants to install a fixed
version in its root.
2014-08-12 09:47:53 -04:00
Navid Nikpour bda9e5f627 Fixed undefined modelClass when using polymorphic relations 2014-08-10 08:46:24 +02:00
Raymond Feng 8a166083fe Merge tag 'v1.2.8'
1.2.8
2014-08-08 11:22:28 -07:00
Raymond Feng eaf3d692b1 Merge branch 'release/1.2.8' into production 2014-08-08 11:22:23 -07:00
Raymond Feng b1fc7347ce Bump version 2014-08-08 11:21:42 -07:00
Raymond Feng f584c0998d Merge pull request #33 from strongloop/feature/fix-issue-32
Fix the type name for a property if model class is used
2014-08-08 11:21:04 -07:00
Raymond Feng bf3a2c9764 Fix the type name for a property if model class is used
See https://github.com/strongloop/loopback-explorer/issues/32
2014-08-04 23:22:41 -07:00
Raymond Feng 200da753b4 Merge tag 'v1.2.7'
1.2.7
2014-08-04 09:09:44 -07:00
Raymond Feng 3f9024a265 Merge branch 'release/1.2.7' into production 2014-08-04 09:09:37 -07:00
Raymond Feng db0ca06a4d Bump version 2014-08-04 09:08:49 -07:00
Raymond Feng 689a2f6a86 Merge pull request #29 from strongloop/feature/workaround-lb-issue-432
Set up default consumes/produces media types
2014-08-04 08:37:45 -07:00
Ritchie Martori e30df1de93 Merge pull request #27 from strongloop/fix/array-items-any
Add required swagger 1.2 items property for property type array
2014-08-04 08:34:59 -07:00
Raymond Feng 0aa476a682 Set up default consumes/produces media types
See:

https://github.com/strongloop/loopback/issues/432
https://github.com/wordnik/swagger-js/issues/107
2014-08-03 21:48:16 -07:00
Raymond Feng 885ae9e71d Merge branch 'STRML-protocol' 2014-07-31 16:48:31 -07:00
Raymond Feng df459ffc8b Fix the default opts 2014-07-31 16:47:47 -07:00
Raymond Feng 3c8f3b1dd0 Merge branch 'protocol' of github.com:STRML/loopback-explorer into STRML-protocol 2014-07-31 16:45:32 -07:00