Example #1
0
 /// <summary>Renders the respone process code.</summary>
 /// <param name="operation">The operation.</param>
 /// <param name="tabCount">The tab count.</param>
 /// <returns>Rendered request body</returns>
 public static string RenderProcessResponseCode(OperationModel operation, int tabCount = 0)
 {
     var tpl = new ProcessResponseTemplate(operation);
     return ConversionUtilities.Tab(tpl.Render(), tabCount);
 }
 public RequestUrlTemplate(OperationModel model)
 {
     Model = model;
 }
Example #3
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 RenderRequestBodyCode(OperationModel operation, int tabCount = 0)
 {
     var tpl = new RequestBodyTemplate(operation);
     return ConversionUtilities.Tab(tpl.Render(), tabCount);
 }
 public ProcessResponseTemplate(OperationModel model)
 {
     Model = model;
 }