Skip to content
Snippets Groups Projects
Commit d320d211 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

WIP: APIv2 CodeGen

parent e1f29db1
No related branches found
No related tags found
2 merge requests!12BREAKING: ApiV2 & Updated api-client,!11WIP: APIv2 CodeGen
......@@ -40,7 +40,7 @@ public class CoscineCodeGenerator : CodeGenerator
var apiPrefix = "coscine/apis/";
var keys = await _configuration.KeysAsync(apiPrefix);
return keys.Select((entry) => entry.Split('/')[2]).Distinct();
return keys.Select((entry) => entry.Split('/')[2]).Distinct().Where(x => x == "Coscine.Api");
}
internal async override Task<string> GetOutputPath()
......@@ -50,6 +50,10 @@ public class CoscineCodeGenerator : CodeGenerator
internal override Task<string> GetSwaggerUrl(string domainName, string hostName, string key)
{
if (key == "Coscine.Api")
{
return Task.FromResult($"https://{hostName}.{domainName}/coscine/api/swagger/v2/swagger.json");
}
return Task.FromResult($"https://{hostName}.{domainName}/coscine/api/{key}/swagger/v1/swagger.json");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment