예제 #1
0
        internal static string Render(ParameterModel model, int tabCount = 0)
        {
            var tpl = new RequestBodyTemplate();

            tpl.Initialize(model);
            return(ConversionUtilities.Tab(tpl.Render(), tabCount));
        }
예제 #2
0
        /// <summary>Renders the request body generation code.</summary>
        /// <param name="operation">The operation.</param>
        /// <param name="tabCount">The tab count.</param>
        /// <returns>Rendered request body</returns>
        public static string Render(OperationModel operation, int tabCount = 0)
        {
            var tpl = new RequestBodyTemplate(operation);

            return(ConversionUtilities.Tab(tpl.Render(), tabCount));
        }