All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.static.js.controller.swagger_controller.js Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
'use strict';
myApp.controller('SwaggerController', [ '$scope', '$window','MockService', 
		function($scope, $window, MockService) {
			var self = this;
			self.enableCatalog = false;
			self.catalogs =[]; 
			//self.fileNames =[]; 
			self.catalogName = '';
			
			self.openSwaggerCatalog = function() {
				loadUrl("swagger-ui.html");
			};
			self.openSwaggerUI = function() {
				loadUrl("swagger-ui/index.html");
			};
			self.openSwaggerEUI = function() {
				loadUrl("swagger-ui/swaggerex-ui.html");
			};
			self.openSwaggerEditor = function() {
				loadUrl("swagger-editor/index.html")
			};
			
			
			function loadUrl(url) {
				$window.open(url, "_blank", "location=no,toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=1000,height=600");
			}
		} ]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy