The path item.
Inheritance: SwaggerModel
コード例 #1
0
ファイル: PathItem.cs プロジェクト: khellang/Nancy.Swagger
        public PathItem Combine(PathItem other)
        {

            return new PathItem()
                   {
                       Delete = Delete ?? other.Delete,
                       Get = Get ?? other.Get,
                       Head = Head ?? other.Head,
                       Options = Options ?? other.Options,
                       Patch = Patch ?? other.Patch,
                       Post = Post ?? other.Post,
                       Put = Put ?? other.Put,
                       Ref = Ref ?? other.Ref,
                       Parameters = Parameters.Concat(other.Parameters).ToList()
                   };
        }
コード例 #2
0
 public SwaggerRouteData(string path, PathItem pathItem)
 {
     Path = path;
     PathItem = pathItem;
     Types = new Dictionary<HttpMethod, Type>();
 }