Пример #1
0
        //private readonly TemplateMatcher _requestMatcher;

        public SwaggerToPostmanMiddleware(RequestDelegate next,
                                          SwaggerToPostmanMiddlewareOptions options,
                                          ISwaggerToPostmanConverter postmanConverter)
        {
            _next             = next;
            _options          = options;
            _postmanConverter = postmanConverter;
            _requestMatcher   = new TemplateMatcher(TemplateParser.Parse(options.RouteTemplate), new RouteValueDictionary());
        }
Пример #2
0
 public PostmanSchemaController(ISwaggerToPostmanConverter postmanConverter)
 {
     this.postmanConverter = postmanConverter;
 }