The path item.
Inheritance: SwaggerModel
Esempio n. 1
0
        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()
                   };
        }
Esempio n. 2
0
 public SwaggerRouteData(string path, PathItem pathItem)
 {
     Path = path;
     PathItem = pathItem;
     Types = new Dictionary<HttpMethod, Type>();
 }