Commit Graph

1318 Commits

Author SHA1 Message Date
Anna Bodnia
78a09ea16f #1248 Returns single item in XML when passing array specification 2016-01-20 11:17:43 +02:00
Anna Bodnia
eefa1c8a54 #1248 Implemented between example XML/JSON by drop-down with type 2016-01-19 17:47:57 +02:00
Anna Bodnia
8a4c6560f5 #1248 implemented display property as attribute 2016-01-18 19:53:53 +02:00
Anna Bodnia
f07d78de97 Added https://github.com/swagger-api/swagger-js/pull/690/commits from swagger-js 2016-01-18 18:24:53 +02:00
Anna Bodnia
f68420051f #1248 createXMLSample Added handling readyOnly params 2016-01-18 13:50:21 +02:00
Anna Bodnia
add91792fb #1248 createXMLSample refactoring 2016-01-18 13:25:02 +02:00
Anna Bodnia
454917a2ba #1248 createXMLSample prettified xml display 2016-01-15 17:23:34 +02:00
Anna Bodnia
7379112211 #1248 createXMLSample show XML example for success response 2016-01-15 16:02:41 +02:00
Anna Bodnia
ea688851f9 #1248 createXMLSample show XML example for parameter 2016-01-15 15:29:37 +02:00
Anna Bodnia
4443883546 #1248 createXMLSample added error message 2016-01-15 12:35:11 +02:00
Anna Bodnia
14df0151ef #1248 createXMLSample added comments what was copy-pasted from swagger-js 2016-01-14 20:55:20 +02:00
Anna Bodnia
c1f4814281 #1248 createXMLSample added message about additional properties 2016-01-14 20:53:30 +02:00
Anna Bodnia
9543ea4671 #1248 createXMLSample moved creating primitive xml into separate function 2016-01-14 19:16:10 +02:00
Anna Bodnia
1c555c00b8 #1248 createXMLSample added XML display for Model in definitions 2016-01-14 17:41:50 +02:00
Anna Bodnia
8917a9bf76 #1248 createXMLSample added object xml representation 2016-01-13 17:13:42 +02:00
Anna Bodnia
455c82c13b #1248 createXMLSample added tests for nested arrays 2016-01-13 12:53:32 +02:00
Anna Bodnia
aa86bb5fe7 #1248 createXMLSample added array 2016-01-13 12:30:12 +02:00
Anna Bodnia
b3ddef2965 #1248 createXMLSample added namespace display 2016-01-12 19:33:00 +02:00
Anna Bodnia
4b0b385102 #1248 createXMLSample made separate function for tagname 2016-01-12 17:14:43 +02:00
Anna Bodnia
b104272ae9 #1248 createXMLSample added getSampleDate method 2016-01-12 15:40:55 +02:00
Anna Bodnia
73feed4ca2 #1248 createXMLSample handle prefix and names in xml 2016-01-12 15:26:59 +02:00
Anna Bodnia
7a8f7016c2 #1248 createXMLSample create xml sample for primitive 2016-01-12 14:06:54 +02:00
Anna Bodnia
e904ca1729 Renamed SwaggerUi.partials.signature 2016-01-11 17:11:37 +02:00
Anna Bodnia
901305faa4 Added unit tests setup 2016-01-11 16:53:39 +02:00
Anna Bodnia
4205cb83b0 #1248 moved render of parameter model to swagger-ui 2016-01-06 15:50:40 +02:00
Anna Bodnia
ba5b89a0cf #1248 moved render of parameter model to swagger-ui 2016-01-06 15:38:13 +02:00
Anna Bodnia
75fdf59c94 #1248 Changed title from Model Schema to Example Value 2016-01-05 16:31:57 +02:00
Anna Bodnia
2fdd02258c #1248 added partial 2016-01-05 13:51:24 +02:00
Anna Bodnia
3426cc8c13 #1248 moved model rendering into separate partial 2016-01-05 13:50:30 +02:00
Anna Bodnia
3dd4315bb8 #1248 Added schema render from swagger-js to swagger-ui 2016-01-04 20:23:37 +02:00
Anna Bodnia
2b377bfa9e Response headers not being displayed for either 200 or other responses #1117 2015-12-31 18:39:45 +02:00
Anna Bodnia
65877f339b #198 ran gulp 2015-12-31 11:24:12 +02:00
Anna Bodnia
c6b224268e Inconsistent enter key behaviour #198 2015-12-30 18:04:16 +02:00
Tony Tam
1817ac84e5 Merge branch 'TomDemeranville-clientCredentialFlowAndMultipleSchemes' 2015-12-18 12:13:24 -08:00
Tony Tam
3135d23c1e Merge branch 'clientCredentialFlowAndMultipleSchemes' of https://github.com/TomDemeranville/swagger-ui into TomDemeranville-clientCredentialFlowAndMultipleSchemes 2015-12-18 12:11:18 -08:00
Tony Tam
afe1b3dcdf disabled tests #1826 2015-12-18 12:10:34 -08:00
Tony Tam
3125a3df24 rebuilt 2015-12-18 12:06:35 -08:00
Tony Tam
849d3cffb4 Merge branch 'master' of github.com:swagger-api/swagger-ui 2015-12-18 12:05:52 -08:00
Tony Tam
de0103bdbd rebuilt with https://github.com/swagger-api/swagger-js/issues/668 applied 2015-12-18 12:05:06 -08:00
Tom Demeranville
7fca3bdb4d added changes to dist 2015-12-18 16:39:57 +00:00
Tom Demeranville
04c23c4ee5 added selector back in 2015-12-18 16:24:07 +00:00
Tom Demeranville
3f9b178ce1 fixed display of OAuth scheme in dialog if more than one scheme 2015-12-18 16:21:01 +00:00
Tom Demeranville
bfc33ec6cd Added support for client credentials (application) flow
Added support for multiple authentication schemes

To use the client credentials, index.html needs to have
1. input boxes to receive client id and client secret
2. handlers that intitialise OAuth correctly on change.

For example, you could replace the explore and apikey inputs in the header with:

      <div class='input'><input placeholder="client id" id="input_clientId" name="clientId" type="text" autocomplete="off"/></div>
      <div class='input'><input placeholder="client secret" id="input_clientSecret" name="clientSecret" type="text" autocomplete="off"/></div>

and add the following javascript to handle updates within the initialisation block (replacing the apikey javascript):

      function updateOauth(){
          initOAuth({
              clientId: $('#input_clientId')[0].value,
              clientSecret: $('#input_clientSecret')[0].value,
              realm: "blank",
              appName: "blank"
          });
      }

      $('#input_clientId').change(updateOauth);
      $('#input_clientSecret').change(updateOauth);

These examples could be incorporated into the swagger index.html file if required (or a new example created)

Issues - displaying multiple schemes could be improved.  Currently the UI is unaware that a particular scheme is required for a call so displays all scopes as options.  Will require work on core swagger ui and templates to make scheme available to swagger-oauth.js
2015-12-18 16:11:25 +00:00
Tom Demeranville
b745779e15 Added support for OAuth client credentials (application) flow
Added support for multiple authentication schemes

To use the client credentials, index.html needs to have
1. input boxes to recieve client id and client secret
2. handlers that intitialse OAuth correctly on change.

For example, you could replace the explore and apikey inputs in the header with:

      <div class='input'><input placeholder="client id" id="input_clientId" name="clientId" type="text" autocomplete="off"/></div>
      <div class='input'><input placeholder="client secret" id="input_clientSecret" name="clientSecret" type="text" autocomplete="off"/></div>

and add the following javascrip to handle updates within the initialisation block (replacing the apikey javascript):

      function updateOauth(){
          initOAuth({
              clientId: $('#input_clientId')[0].value,
              clientSecret: $('#input_clientSecret')[0].value,
              realm: "blank",
              appName: "blank"
          });
      }

      $('#input_clientId').change(updateOauth);
      $('#input_clientSecret').change(updateOauth);
2015-12-18 15:58:19 +00:00
Tony Tam
8e420faa23 Merge pull request #1823 from brlo/patch-1
check 'defaultValue' before calling 'replace'
2015-12-17 14:04:51 -05:00
Rodion
63951d0bf8 check 'defaultValue' before calling 'replace'
fix error "defaultValue.replace is not a function" when defaultValue is Integer
2015-12-17 20:14:09 +03:00
Tony Tam
85b0f4bab0 added jsonEditor option 2015-12-16 03:01:35 -08:00
Tony Tam
dbf00bba5b Merge branch 'thomsonreuters-JSONEditorMaster' 2015-12-16 02:47:06 -08:00
Tony Tam
60848bb4e2 rebuilt, set editor to false by default 2015-12-16 02:46:47 -08:00
Laurent Lepinay
2c431d7873 Merge remote-tracking branch 'upstream/master' into JSONEditorMaster
Conflicts:
	dist/swagger-ui.js
	dist/swagger-ui.min.js
	src/main/javascript/view/OperationView.js
	src/main/less/screen.less
2015-12-16 10:25:38 +01:00