This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// not the most elgant way but it works | |
// Modified to poll until the spec has loaded and then update to the current URL. | |
// Useful for microservices where you deploy the swagger-ui as part of the bundle and | |
// the Scheme/Hostname/Port are not know at runtime (for example, because they are being hosted by | |
// Docker, Kubernetes etc...) | |
function changeSwagger() { | |
// Try to get the Spec | |
var newspec = ui.spec().toJSON().resolved; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.vertx.core.AbstractVerticle; | |
import io.vertx.core.Vertx; | |
import io.vertx.core.VertxOptions; | |
import io.vertx.core.http.HttpServerRequest; | |
import io.vertx.ext.web.Router; | |
import io.vertx.ext.web.handler.CookieHandler; | |
import io.vertx.ext.web.handler.SessionHandler; | |
import io.vertx.ext.web.sstore.ClusteredSessionStore; | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import com.hazelcast.client.HazelcastClient; | |
import com.hazelcast.client.config.ClientConfig; | |
import com.hazelcast.config.Config; | |
import com.hazelcast.config.XmlConfigBuilder; | |
import com.hazelcast.core.*; | |
import io.vertx.core.AsyncResult; | |
import io.vertx.core.Handler; | |
import io.vertx.core.Vertx; |