Commit Graph

28 Commits

Author SHA1 Message Date
Shelby Sanders 8563dd0463 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Sort endpoints by letter.
  Add syntax highlighting styles & highlight threshold.
  Add contribution guidelines
  Bump version
  Fix how the array of models is iterated
  Bump version
  Make sure nested/referenced models in array are mapped to swagger
  Make sure nested/referenced models are mapped to swagger
  Bump version
  Newest Swagger UI requires application/x-www-form-urlencoded.
  Use `dist` property from swagger-ui package.
  Fixed undefined modelClass when using polymorphic relations
  Bump version
  Fix the type name for a property if model class is used

Conflicts:
	lib/model-helper.js
	lib/swagger.js
	public/css/loopbackStyles.css
2014-10-07 11:57:15 -07: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
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
Shelby Sanders 2d6f7aebe8 Added padding to content well in order to counteract changes in SwaggerUI 2014-09-29 19:43:56 -07:00
Shelby Sanders 1a96d84035 Corrected issues with merge of 2.x changes 2014-08-04 20:09:07 -07:00
Shelby Sanders 9693150c8b Corrected issues with merge of 2.x changes 2014-08-04 20:04:41 -07:00
Shelby Sanders ae8858c66b Corrected issues with merge of 2.x changes 2014-08-04 20:02:00 -07:00
Shelby Sanders 24d77f027d Corrected issues with merge of 2.x changes 2014-08-04 19:56:58 -07:00
Shelby Sanders 696e387ff3 Corrected issues with merge of 2.x changes 2014-08-04 19:44:12 -07:00
Samuel Reed 86d79584f9 Load swagger ui from `swagger-ui` package instead.
Added option `swaggerDistRoot` for specific file overrides.

Conflicts:
	README.md
	example/simple.js
	index.js
	package.json
	public/css/screen.css
	public/images/logo_small.png
	public/index.html
	public/lib/loadSwaggerUI.js
2014-08-04 19:22:55 -07:00
Shelby Sanders 2c737d40b6 Merge remote-tracking branch 'upstream/master'
* upstream/master: (38 commits)
  Bump version
  res.send deprecated - updated to res.status
  Remove hidden properties from definition.
  Bump version
  Ensure models from relations are included
  1.2.4
  model-helper: handle arrays with undefined items
  1.2.3
  model-helper: handle array types with no item type
  Bump version
  Properly convert complex return types.
  Bump version
  Fix up loopback.rest() model definition hack.
  Bump version and update deps
  s/accessToken/access_token in authorization key name
  Fix resources if the explorer is at a deep path.
  Fix debug namespace, express version.
  Remove forgotten TODO.
  Simplify `accepts` and `returns` hacks.
  More consise type tests
  ...

Conflicts:
	public/css/loopbackStyles.css
	public/css/screen.css
	public/index.html
	public/lib/loadSwaggerUI.js
	public/lib/swagger.js
	public/swagger-ui.js
	public/swagger-ui.min.js
2014-08-04 18:11:36 -07:00
Shelby Sanders c1a0eb5192 Upgraded to SwaggerUI 2.0.18 2014-07-30 11:40:45 -07:00
Shelby Sanders 17e8b7b919 Added support for toggling Model and Schema, and added support for primitives in StatusCodeView 2014-07-28 21:36:28 -07:00
Shelby Sanders 15aa4e9ae5 Ensure Response Content Type is shown regardless of Response Class 2014-07-16 14:30:32 -07:00
Shelby Sanders 0e223845e5 Reverted to use special loading logic from loopback-explorer 2014-07-14 22:07:14 -07:00
Shelby Sanders ed044468f7 Reverted to use special loading logic from loopback-explorer 2014-07-14 21:57:39 -07:00
Shelby Sanders 0f4bf489d9 Updated to latest Swagger-UI for better responseMessage signature handling 2014-07-14 21:48:46 -07:00
Samuel Reed fcd1926758 s/accessToken/access_token in authorization key name 2014-07-14 15:40:05 -05:00
Shelby Sanders 59afbb1f32 Upgraded to latest Swagger-UI for 1.2 support 2014-07-12 23:09:00 -07:00
Shelby Sanders 5a07b80b6b Upgraded to latest Swagger-UI for 1.2 support 2014-07-12 23:04:13 -07:00
Shelby Sanders a9c1152c74 Correct description of collections of object and nested 2014-07-10 05:07:43 -07:00
Samuel Reed a6afe13b08 Restore existing styles.
TODO extract overrides instead of replacing styles wholesale.
2014-07-09 12:03:34 -05:00
Samuel Reed 5f22982200 Allow easy setting of accessToken in explorer UI. 2014-07-09 11:45:44 -05:00
Shelby Sanders 88c330a503 Add indication of response being a collection 2014-07-09 03:36:41 -07: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 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 f3d6cb9b54 Initial explorer 2013-11-05 11:16:59 -08:00