Johannes Dewender
ae93b581d2
don't set contentType for empty body
...
When content-type is set to a non-standard value,
CORS requires a preflight request that needs to be handled
by the destination server.
We shouldn't require that, when no body is sent at all
and the content-type is irrelevant anyways.
2013-03-17 22:36:17 +01:00
Tony Tam
722da60f5d
fixed required param bug per #163
2013-03-08 06:19:29 -08:00
Pepijn de Geus
c3a3f1861c
Merge commit '4ee046d39c58cbf72042bf72616e9958dbf8f71a'
...
# By Andreas Andreou
# Via Andreas Andreou (1) and Tony Tam (1)
* commit '4ee046d39c58cbf72042bf72616e9958dbf8f71a':
toggleOperationContent to escape resource name before querying for node
2013-03-01 09:48:35 +01:00
Pepijn de Geus
d9285f175d
More CSS cleaning.
2013-02-28 12:59:30 +01:00
Pepijn de Geus
4fb7ffdcac
Fix custom bold text.
2013-02-28 11:20:25 +01:00
Pepijn de Geus
d205753044
UI improvements for parameters (input and read-only) and model description.
...
Uses changes to swagger.js (swagger-client).
2013-02-27 17:01:25 +01:00
Andreas Andreou
29b3d1dc68
toggleOperationContent to escape resource name before querying for node
2013-02-25 16:05:03 +02:00
Tony Tam
b6d60786c1
added swagger-client as dependency, renamed from to to avoid collisions
2013-02-08 11:54:57 -08:00
Tony Tam
e318616cd1
reverted default url
2013-02-04 10:39:45 -08:00
Tony Tam
9b1bd11f2d
fix for #121
2013-02-01 21:32:14 -05:00
Tony Tam
1ec55a8829
update for swagger.js#14, #138 , #139
2013-01-31 20:06:34 -05:00
Tony Tam
f0f6a07a61
fixed file bug for indent issue and param type check
2013-01-25 20:13:09 -08:00
Ayush Gupta
2212f73492
closes #107
2012-12-04 22:11:55 +05:30
Alberto Pose
3edb6437fb
Fixing merge problem
2012-11-29 15:36:52 -03:00
Tony Tam
356ae491aa
fixed duplicate model, updated example name
2012-11-27 16:03:54 -08:00
Tony Tam
7bc8109e88
re-merged #96
2012-11-27 15:04:12 -08:00
Tony Tam
3fd37c3ef6
Merge pull request #102 from sequielo/patch-1
...
Update src/main/javascript/doc.js
2012-11-27 13:48:06 -08:00
Alberto Pose
12bdd38406
Adding fallback to XML when JSON response parsing fails.
2012-11-27 18:24:32 -03:00
sequielo
369b639329
Update src/main/javascript/doc.js
...
fixed #101 : expand operations for resource when resource paramenter is an empty string.
2012-11-27 00:14:47 -02:00
Tony Tam
3f9ed33f7f
added missing files per #100
2012-11-26 13:47:34 -08:00
Tony Tam
d1bffc8fb4
manual merge of #97
2012-11-25 21:52:30 -08:00
Tony Tam
55f0c1a2f8
Merge pull request #95 from pose/json-response-pretty-print
...
Adding JSON sample UI to response
2012-11-25 21:10:52 -08:00
Tony Tam
03e21019d2
Merge pull request #94 from pose/titles-fix
...
Small change to signature titles
2012-11-25 21:10:16 -08:00
Alberto Pose
75ff471425
Adding operation number to create a unique href for the <a/> tag.
2012-11-22 17:45:40 -03:00
Alberto Pose
dd1b2219b8
Adding JSON sample UI to response
2012-11-21 13:20:09 -03:00
Alberto Pose
f5cfee8296
Small improvements to some titles
2012-11-21 11:50:05 -03:00
Tony Tam
9b58ed5430
redo of PR #88 , #89 , #90
2012-11-19 19:51:28 -08:00
Tony Tam
2d62bddfb8
updated to 1.1.4
2012-11-19 19:30:42 -08:00
Ayush Gupta
cfa2006042
closes #83
2012-11-16 12:11:47 +05:30
Ayush Gupta
3dca74c08f
closes #84
2012-11-16 12:01:30 +05:30
Alberto Pose
fd6379140d
Adding syntax highlight to JSON snippets and responses.
2012-11-15 18:13:33 -03:00
Alberto Pose
ab572e87be
Removing console.log
2012-11-15 12:25:28 -03:00
Ayush Gupta
e4cf6e8f8c
Merge pull request #79 from gregmac/patch-1
...
Fix for #54
2012-11-14 21:53:52 -08:00
Ayush Gupta
2bfa39295a
merged pull request #42 from @tim-vandecasteele
2012-11-15 11:01:28 +05:30
Alberto Pose
9687a8084f
Adding 'snippet' tab to parameter datatype signature UI
...
This new section displays how a complex datatype should look like providing some sample code for the developer using Swagger.
2012-11-14 17:33:51 -03:00
Greg MacLellan
ad944b93f3
Support console.log in IE9
...
IE9 does console incorrectly, this fixes according to http://stackoverflow.com/questions/5538972/console-log-apply-not-working-in-ie9
2012-11-13 13:03:16 -05:00
Alberto Pose
7e9d4692c4
Merge branch 'master' of github.com:pose/swagger-ui
...
Conflicts:
lib/swagger.js
2012-11-12 20:29:41 -03:00
Alberto Pose
d666d09741
Adding response status code views (swagger.js updated).
2012-11-12 20:26:24 -03:00
Greg MacLellan
abcd97d512
Added doctype declaration
...
In IE in particular, not including a doctype causes it to do all sorts of ridiculous things, like rendering in IE5 quirks mode.
I am not sure why any developers would using IE, but my QA team found this and it's an easy enough fix and technically the right thing to do, so might as well fix it.
2012-11-09 17:06:18 -05:00
Ayush Gupta
b743c0f3db
closes #35
2012-11-06 11:03:38 +05:30
Ayush Gupta
4a77d5a20f
removed unnecessary node_modules, updated some of the logic from pull request for docExpansion, onComplete and onFailure param support
2012-11-05 11:17:25 +05:30
Ayush Gupta
b05f6f9cb5
upgraded handlebars and removed the need for local copy of handlebars.
2012-11-05 08:48:03 +05:30
Ayush Gupta
f435ffaa27
Merge pull request #74 from arjunballa/master
...
doneSuccess and doneFailure callback functions and display resources in list and expanded view
2012-11-04 18:26:29 -08:00
Arjun Balla
6beaa62b71
code to display resources in default/list/expended style. style can be
...
passed as a option while creating swagerUi object.
In future I would like to achieve this by passing options to templates
and have a template helper method manipulate dom and apply correct
classes.This approach will improve the performance as we need not go
over the entire dom and call Doc.collapseOperationsForResource or
Doc.expandOperationsForResource on each matched element
2012-10-23 11:42:26 -07:00
Arjun Balla
1fc4caae2e
code to pass doneSuccess and doneFailure callback functions. doneSuccess is invoked after successful rendering of swagger-ui and doneFailure is invoke if there is failure in rendering swagger-ui
2012-10-23 11:26:20 -07:00
Артём Курапов
4ebfd081c0
Problem sending parameters via POST
...
Jquery seems to fail posting data as POST params if contentType is overwritten. At least in chrome
2012-10-15 14:44:48 +03:00
Arul
1429ee3eba
setting content type to JSON for http PATCH
...
Updating OperationView.coffee to add JSON content type for PATCH
similar to POST and PUT so that the newly added PATCH works fine
2012-10-02 01:42:48 +08:00
Ayush Gupta
8d39588524
added styling for patch
2012-09-30 17:26:43 +05:30
Ayush Gupta
8a80fe9a0c
reformatted css for readability
2012-09-30 16:48:56 +05:30
Rintcius Blok
ce0c919ee2
refer to jquery-1.8.0.min.js because jquery-1.8.0.js is not available in lib
...
(also added .idea to .gitignore)
2012-08-30 16:24:27 +01:00