window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = url[1];
} else {
}
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function(swaggerApi, swaggerUi){
log("Loaded SwaggerUI");
if(typeof initOAuth == "function") {
/*
initOAuth({
clientId: "your-client-id",
realm: "your-realms",
appName: "your-app-name"
});
*/
}
$('pre code').each(function(i, e) {
hljs.highlightBlock(e)
});
},
onFailure: function(data) {
log("Unable to Load SwaggerUI");
},
docExpansion: "none",
sorter : "alpha"
});
function addApiKeyAuthorization() {
var key = $('#input_apiKey')[0].value;
log("key: " + key);
if(key && key.trim() != "") {
log("added key " + key);
window.authorizations.add("api_key", new ApiKeyAuthorization("api_key", key, "query"));
}
}
$('#input_apiKey').change(function() {
addApiKeyAuthorization();
});
// if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
/*
var apiKey = "myApiKeyXXXX123456789";
$('#input_apiKey').val(apiKey);
addApiKeyAuthorization();
*/
window.swaggerUi.load();
});
</script>
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, January 28, 2015 at 12:16:43 PM UTC-6, Ron wrote:
If your deployment is public, can you share a URL?
If not, can you share a screenshot showing the problem?
On Wed, Jan 28, 2015 at 10:14 AM, SwaggerIt <raj...@gmail.com> wrote:
Can someone help, or advise if I need to open issue for this problem,It seems problem mentioned by me/Rajesh in this thread are same so looks repeating.a documented solution here would certainly help other users.
On Tuesday, January 27, 2015 at 7:28:19 PM UTC-6, SwaggerIt wrote:I was trying to configure swagger with with simple app on tomcat.Swagger ui is working and I can see my service though there is no option to try the service like there is on the sample pet store app.I am new to swagger and might be wrong in configuration.Can you please advise what to check.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// swagger-ui.js
// version 2.1.0-alpha.7
Can you check which version of the ui you're using?You can look at the top of the swagger-ui.js file.
On Wed, Jan 28, 2015 at 1:32 PM, SwaggerIt <raj...@gmail.com> wrote:
Please see screenshot attached.
On Wednesday, January 28, 2015 at 12:16:43 PM UTC-6, Ron wrote:
If your deployment is public, can you share a URL?
If not, can you share a screenshot showing the problem?
On Wed, Jan 28, 2015 at 10:14 AM, SwaggerIt <raj...@gmail.com> wrote:
Can someone help, or advise if I need to open issue for this problem,It seems problem mentioned by me/Rajesh in this thread are same so looks repeating.a documented solution here would certainly help other users.
On Tuesday, January 27, 2015 at 7:28:19 PM UTC-6, SwaggerIt wrote:I was trying to configure swagger with with simple app on tomcat.Swagger ui is working and I can see my service though there is no option to try the service like there is on the sample pet store app.I am new to swagger and might be wrong in configuration.Can you please advise what to check.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.