Skip to content

Commit d2cbd0b

Browse files
Rename Certify.Server.Api.Public to Certify.Server.Hub.Api
1 parent c64f164 commit d2cbd0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+76
-76
lines changed

src/Certify.Aspire/Certify.Aspire.AppHost/Certify.Aspire.AppHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\..\Certify.Server\Certify.Server.Api.Public\Certify.Server.Api.Public.csproj" />
17+
<ProjectReference Include="..\..\Certify.Server\Certify.Server.Hub.Api\Certify.Server.Hub.Api.csproj" />
1818
<ProjectReference Include="..\..\Certify.Server\Certify.Server.Core\Certify.Server.Core\Certify.Server.Core.csproj" />
1919
</ItemGroup>
2020

src/Certify.Aspire/Certify.Aspire.AppHost/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var builder = DistributedApplication.CreateBuilder(args);
22

3-
builder.AddProject<Projects.Certify_Server_Api_Public>("certifyserverapi");
3+
builder.AddProject<Projects.Certify_Server_Hub_Api>("certifyserverhubapi");
44

55
builder.AddProject<Projects.Certify_Server_Core>("certifyservercore");
66

src/Certify.Core.Service.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Certify.Providers.ACME.Anvi
6969
EndProject
7070
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Certify.ACME.Anvil", "..\..\libs\anvil\src\Certify.ACME.Anvil\Certify.ACME.Anvil.csproj", "{443202E1-B6E5-4625-BC3E-B3CB54CF4055}"
7171
EndProject
72-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Certify.Server.Api.Public", "Certify.Server\Certify.Server.Api.Public\Certify.Server.Api.Public.csproj", "{2DB50C13-7535-4D01-8EA5-1839F1472D7B}"
72+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Certify.Server.Hub.Api", "Certify.Server\Certify.Server.Hub.Api\Certify.Server.Hub.Api.csproj", "{2DB50C13-7535-4D01-8EA5-1839F1472D7B}"
7373
EndProject
7474
Global
7575
GlobalSection(SolutionConfigurationPlatforms) = preSolution

src/Certify.Server/Certify.Server.Core/Certify.Server.Core/Certify.Server.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
<Folder Include="Properties\" />
3232
</ItemGroup>
3333
<ItemGroup>
34-
<InternalsVisibleTo Include="Certify.Server.Api.Public.Tests" />
34+
<InternalsVisibleTo Include="Certify.Server.Hub.Api.Tests" />
3535
</ItemGroup>
36-
</Project>
36+
</Project>

src/Certify.Server/Certify.Server.Api.Public.Client/Certify.API.Public.cs renamed to src/Certify.Server/Certify.Server.Hub.Api.Client/Certify.Server.Hub.Api.Client.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type"
2727
#pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."
2828

29-
namespace Certify.API.Public
29+
namespace Certify.Server.Hub.Api
3030
{
3131
using System = global::System;
3232

@@ -4558,22 +4558,22 @@ public virtual async System.Threading.Tasks.Task<VersionInfo> GetSystemVersionAs
45584558
}
45594559

45604560
/// <summary>
4561-
/// Check API is responding and can connect to background service
4561+
/// Check API is configured, responding and can connect to background service
45624562
/// </summary>
45634563
/// <returns>OK</returns>
45644564
/// <exception cref="ApiException">A server side error occurred.</exception>
4565-
public virtual System.Threading.Tasks.Task<object> GetHealthAsync()
4565+
public virtual System.Threading.Tasks.Task<HubHealth> GetHealthAsync()
45664566
{
45674567
return GetHealthAsync(System.Threading.CancellationToken.None);
45684568
}
45694569

45704570
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
45714571
/// <summary>
4572-
/// Check API is responding and can connect to background service
4572+
/// Check API is configured, responding and can connect to background service
45734573
/// </summary>
45744574
/// <returns>OK</returns>
45754575
/// <exception cref="ApiException">A server side error occurred.</exception>
4576-
public virtual async System.Threading.Tasks.Task<object> GetHealthAsync(System.Threading.CancellationToken cancellationToken)
4576+
public virtual async System.Threading.Tasks.Task<HubHealth> GetHealthAsync(System.Threading.CancellationToken cancellationToken)
45774577
{
45784578
var client_ = _httpClient;
45794579
var disposeClient_ = false;
@@ -4614,7 +4614,7 @@ public virtual async System.Threading.Tasks.Task<object> GetHealthAsync(System.T
46144614
var status_ = (int)response_.StatusCode;
46154615
if (status_ == 200)
46164616
{
4617-
var objectResponse_ = await ReadObjectResponseAsync<object>(response_, headers_, cancellationToken).ConfigureAwait(false);
4617+
var objectResponse_ = await ReadObjectResponseAsync<HubHealth>(response_, headers_, cancellationToken).ConfigureAwait(false);
46184618
if (objectResponse_.Object == null)
46194619
{
46204620
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);

src/Certify.Server/Certify.Server.Api.Public.Client/Certify.Server.Api.Public.Client.csproj renamed to src/Certify.Server/Certify.Server.Hub.Api.Client/Certify.Server.Hub.Api.Client.csproj

File renamed without changes.

src/Certify.Server/Certify.Server.Api.Public.Client/nswag.json renamed to src/Certify.Server/Certify.Server.Hub.Api.Client/nswag.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"wrapResponseMethods": [],
6868
"generateResponseClasses": true,
6969
"responseClass": "SwaggerResponse",
70-
"namespace": "Certify.API.Public",
70+
"namespace": "Certify.Server.Hub.Api",
7171
"requiredPropertiesMustBeDefined": true,
7272
"dateType": "System.DateTimeOffset",
7373
"jsonConverters": null,
@@ -110,8 +110,8 @@
110110
"templateDirectory": null,
111111
"serviceHost": null,
112112
"serviceSchemes": null,
113-
"output": "Certify.API.Public.cs",
113+
"output": "Certify.Server.Hub.Api.Client.cs",
114114
"newLineBehavior": "Auto"
115115
}
116116
}
117-
}
117+
}

src/Certify.Server/Certify.Server.Api.Public.Client/readme.md renamed to src/Certify.Server/Certify.Server.Hub.Api.Client/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Certify.Server.Api.Public.Client
1+
# Certify.Server.Hub.Api.Client
22

33
This is a an example C# client for the public API of Certify Server. The Client is currently generated using NSwagStudio (start public API in debug then run the tool to generate the updated client).
44

src/Certify.Server/Certify.Server.Api.Public.Tests/APITestBase.cs renamed to src/Certify.Server/Certify.Server.Hub.Api.Tests/APITestBase.cs

File renamed without changes.

src/Certify.Server/Certify.Server.Api.Public.Tests/AccessTests.cs renamed to src/Certify.Server/Certify.Server.Hub.Api.Tests/AccessTests.cs

File renamed without changes.

0 commit comments

Comments
 (0)