Skip to content

Commit ef130c5

Browse files
committed
reverted part of change
1 parent 312179d commit ef130c5

35 files changed

Lines changed: 175 additions & 0 deletions

File tree

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ClientUtils.mustache

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ using System.Runtime.CompilerServices;
386386
/// </summary>
387387
public const string SCHEME = "{{{scheme}}}";
388388

389+
/// <summary>
390+
/// The context path of the API
391+
/// </summary>
392+
public const string CONTEXT_PATH = "{{contextPath}}";
393+
389394
/// <summary>
390395
/// The host of the API
391396
/// </summary>

samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ public static bool IsJsonMime(string mime)
316316
/// </summary>
317317
public const string SCHEME = "http";
318318

319+
/// <summary>
320+
/// The context path of the API
321+
/// </summary>
322+
public const string CONTEXT_PATH = "/api/rest/v1";
323+
319324
/// <summary>
320325
/// The host of the API
321326
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
300300
/// </summary>
301301
public const string SCHEME = "http";
302302

303+
/// <summary>
304+
/// The context path of the API
305+
/// </summary>
306+
public const string CONTEXT_PATH = "/v1";
307+
303308
/// <summary>
304309
/// The host of the API
305310
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
300300
/// </summary>
301301
public const string SCHEME = "http";
302302

303+
/// <summary>
304+
/// The context path of the API
305+
/// </summary>
306+
public const string CONTEXT_PATH = "";
307+
303308
/// <summary>
304309
/// The host of the API
305310
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
285285
/// </summary>
286286
public const string SCHEME = "http";
287287

288+
/// <summary>
289+
/// The context path of the API
290+
/// </summary>
291+
public const string CONTEXT_PATH = "";
292+
288293
/// <summary>
289294
/// The host of the API
290295
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
400400
/// </summary>
401401
public const string SCHEME = "http";
402402

403+
/// <summary>
404+
/// The context path of the API
405+
/// </summary>
406+
public const string CONTEXT_PATH = "/v2";
407+
403408
/// <summary>
404409
/// The host of the API
405410
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
300300
/// </summary>
301301
public const string SCHEME = "http";
302302

303+
/// <summary>
304+
/// The context path of the API
305+
/// </summary>
306+
public const string CONTEXT_PATH = "";
307+
303308
/// <summary>
304309
/// The host of the API
305310
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
404404
/// </summary>
405405
public const string SCHEME = "http";
406406

407+
/// <summary>
408+
/// The context path of the API
409+
/// </summary>
410+
public const string CONTEXT_PATH = "/v2";
411+
407412
/// <summary>
408413
/// The host of the API
409414
/// </summary>

samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
285285
/// </summary>
286286
public const string SCHEME = "http";
287287

288+
/// <summary>
289+
/// The context path of the API
290+
/// </summary>
291+
public const string CONTEXT_PATH = "";
292+
288293
/// <summary>
289294
/// The host of the API
290295
/// </summary>

samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ClientUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ public static string GetDiscriminator(Utf8JsonReader utf8JsonReader, string disc
300300
/// </summary>
301301
public const string SCHEME = "http";
302302

303+
/// <summary>
304+
/// The context path of the API
305+
/// </summary>
306+
public const string CONTEXT_PATH = "/v1";
307+
303308
/// <summary>
304309
/// The host of the API
305310
/// </summary>

0 commit comments

Comments
 (0)