Files
csharp/gen/KubernetesGenerator
Vladimir Khvostov c23baaf3e8 Fixed bug in methods which hit "apis/{group}/..." url (#741)
* Moved _url.Replace("/apis//", "/api/") down several lines.

Consider the following code:
  var _baseUrl = BaseUri.AbsoluteUri;
  var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString();
  _url = _url.Replace("/apis//", "/api/");
  _url = _url.Replace("{group}", group);
  _url = _url.Replace("{version}", version);
  _url = _url.Replace("{namespace}", namespaceParameter);
  _url = _url.Replace("{plural}", plural);

If group is empty string, we need to replace /apis// with /api.
To do this, we need to replace /apis// after {group}.
Code after the change:

   var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString();
  _url = _url.Replace("{group}", group);
  _url = _url.Replace("{version}", version);
  _url = _url.Replace("{namespace}", namespaceParameter);
  _url = _url.Replace("{plural}", plural);
  _url = _url.Replace("/apis//", "/api/");

* Auto-generated changes
2021-11-02 12:41:32 -07:00
..
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-20 06:53:59 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00
2021-10-24 08:14:22 -07:00