From 3a2d7adc356b1381d42426dbe4bcfc22fe4a06ee Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Mon, 3 Jun 2013 19:02:09 -0400 Subject: [PATCH] code comment templating added --- src/main/resources/csharp/api.mustache | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/csharp/api.mustache b/src/main/resources/csharp/api.mustache index b08081d81e9..36053337bf5 100644 --- a/src/main/resources/csharp/api.mustache +++ b/src/main/resources/csharp/api.mustache @@ -15,15 +15,24 @@ return apiInvoker; } + // Sets the endpoint base url for the services being accessed public void setBasePath(string basePath) { this.basePath = basePath; } + // Gets the endpoint base url for the services being accessed public String getBasePath() { return basePath; } {{#operation}} + + /// + /// {{summary}} {{notes}} + /// + {{#allParams}}/// {{description}} + {{#hasMore}} {{/hasMore}}{{/allParams}} + /// public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) { // create path and map variables var path = "{{path}}".Replace("{format}","json"){{#pathParams}}.Replace("{" + "{{paramName}}" + "}", apiInvoker.escapeString({{{paramName}}}.ToString())){{/pathParams}};