Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ihor Kaharlichenko
swagger-ui-oms
Commits
b2637fc4
Commit
b2637fc4
authored
Jul 31, 2013
by
Tony Tam
Browse files
removed console log, updated swagger.js
parent
c6f2aada
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
dist/lib/swagger.js
View file @
b2637fc4
...
...
@@ -216,6 +216,7 @@
produces
=
[];
consumes
=
[];
this
.
path
=
this
.
api
.
resourcePath
!=
null
?
this
.
api
.
resourcePath
:
resourceObj
.
path
;
console
.
log
(
'
using path
'
+
this
.
path
);
this
.
description
=
resourceObj
.
description
;
parts
=
this
.
path
.
split
(
"
/
"
);
this
.
name
=
parts
[
parts
.
length
-
1
].
replace
(
'
.{format}
'
,
''
);
...
...
@@ -230,7 +231,11 @@
if
(
this
.
path
==
null
)
{
this
.
api
.
fail
(
"
SwaggerResources must have a path.
"
);
}
this
.
url
=
this
.
api
.
basePath
+
this
.
path
.
replace
(
'
{format}
'
,
'
json
'
);
if
(
this
.
path
.
substring
(
0
,
4
)
===
'
http
'
)
{
this
.
url
=
this
.
path
.
replace
(
'
{format}
'
,
'
json
'
);
}
else
{
this
.
url
=
this
.
api
.
basePath
+
this
.
path
.
replace
(
'
{format}
'
,
'
json
'
);
}
this
.
api
.
progress
(
'
fetching resource
'
+
this
.
name
+
'
:
'
+
this
.
url
);
obj
=
{
url
:
this
.
url
,
...
...
dist/swagger-ui.js
View file @
b2637fc4
...
...
@@ -1757,7 +1757,6 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials
_ref
=
this
.
model
.
parameters
;
for
(
_i
=
0
,
_len
=
_ref
.
length
;
_i
<
_len
;
_i
++
)
{
param
=
_ref
[
_i
];
console
.
log
(
"
looking at
"
+
param
.
dataType
);
if
(
param
.
dataType
.
toLowerCase
()
===
'
file
'
)
{
if
(
!
contentTypeModel
.
consumes
)
{
console
.
log
(
"
set content type
"
);
...
...
dist/swagger-ui.min.js
View file @
b2637fc4
This diff is collapsed.
Click to expand it.
lib/swagger.js
View file @
b2637fc4
...
...
@@ -216,6 +216,7 @@
produces
=
[];
consumes
=
[];
this
.
path
=
this
.
api
.
resourcePath
!=
null
?
this
.
api
.
resourcePath
:
resourceObj
.
path
;
console
.
log
(
'
using path
'
+
this
.
path
);
this
.
description
=
resourceObj
.
description
;
parts
=
this
.
path
.
split
(
"
/
"
);
this
.
name
=
parts
[
parts
.
length
-
1
].
replace
(
'
.{format}
'
,
''
);
...
...
@@ -230,7 +231,11 @@
if
(
this
.
path
==
null
)
{
this
.
api
.
fail
(
"
SwaggerResources must have a path.
"
);
}
this
.
url
=
this
.
api
.
basePath
+
this
.
path
.
replace
(
'
{format}
'
,
'
json
'
);
if
(
this
.
path
.
substring
(
0
,
4
)
===
'
http
'
)
{
this
.
url
=
this
.
path
.
replace
(
'
{format}
'
,
'
json
'
);
}
else
{
this
.
url
=
this
.
api
.
basePath
+
this
.
path
.
replace
(
'
{format}
'
,
'
json
'
);
}
this
.
api
.
progress
(
'
fetching resource
'
+
this
.
name
+
'
:
'
+
this
.
url
);
obj
=
{
url
:
this
.
url
,
...
...
src/main/coffeescript/view/OperationView.coffee
View file @
b2637fc4
...
...
@@ -32,7 +32,6 @@ class OperationView extends Backbone.View
contentTypeModel
.
produces
=
@
model
.
produces
for
param
in
@
model
.
parameters
console
.
log
"looking at "
+
param
.
dataType
if
param
.
dataType
.
toLowerCase
()
==
'file'
if
!
contentTypeModel
.
consumes
console
.
log
"set content type "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment