Beispiel #1
0
        public void Setup()
        {
            // Get ApiExplorer for TestApp
            var httpConfiguration = new HttpConfiguration();

            WebApiConfig.Register(httpConfiguration);

            _postFilters = new List <IOperationSpecFilter>();
            _swaggerSpec = new ApiExplorerAdapter(new ApiExplorer(httpConfiguration), () => "http://tempuri.org", _postFilters);
        }
 public ApiDocsController()
 {
     _swaggerSpec = SwaggerSpecFactory.GetSpec();
 }
 public ApiDocsController()
 {
     _swaggerSpec = SwaggerSpecFactory.GetSpec();
 }
        public void Setup()
        {
            // Get ApiExplorer for TestApp
            var httpConfiguration = new HttpConfiguration();
            WebApiConfig.Register(httpConfiguration);

            _postFilters = new List<IOperationSpecFilter>();
            _swaggerSpec = new ApiExplorerAdapter(new ApiExplorer(httpConfiguration), () => "http://tempuri.org", _postFilters);
        }