Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public ApiDocsController()
 {
     _swaggerSpec = SwaggerSpecFactory.GetSpec();
 }
Ejemplo n.º 3
0
 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);
        }