protected override void OtherHandle(RAMLDocument doc)
        {
            doc.RAMLVersion = RAMLDocument.RAMLVersion10;
            var pc = parameterConverter as ParameterConverterV10;

            if (pc == null)
            {
                return;
            }
            foreach (var item in pc.GetOtherTypes().GroupBy(i => i.Key)
                     .Select(g => g.First())
                     .ToList())
            {
                doc.Types.AddElement(item);
            }
            pc.ClearOtherTypes();
        }
Beispiel #2
0
        private RAMLDocument GenerateDocument(ApiDescriptionGroup group)
        {
            var doc = new RAMLDocument
            {
                Title = group.GroupName
            };

            foreach (var item in group.Items)
            {
                var key      = "/" + item.RelativePath;
                var resource = doc.GetOrAddResource(key);
                SetUriPatameters(item, resource);
                SetMethod(item, resource);
            }

            OtherHandle(doc);

            return(doc);
        }
Beispiel #3
0
 protected virtual void OtherHandle(RAMLDocument doc)
 {
 }