Пример #1
0
        public RestTypeDoc(string name, RestInfo restInfo, RestTag tag, IReadOnlyList <RestAction> restActions)
        {
            Version = restInfo.Version.Replace("v", "");
            Name    = name;
            Methods = restActions
                      .Select(x => new RestMethodDoc(this, x))
                      .OrderBy(x => x.MethodType)
                      .ThenBy(x => x.Name)
                      .ToList();

            if (tag != null)
            {
                Description = tag.Description;
            }
        }
Пример #2
0
 public RestDoc(RestInfo restInfo, IReadOnlyList <RestTag> tags, IReadOnlyList <RestPath> restPaths)
 {
     RestInfo  = restInfo;
     Tags      = tags;
     RestPaths = restPaths;
 }