Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.rest.blockadelabs 1.0.0-preview.1 #1

Merged
merged 18 commits into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
renamed root endpoint to skybox endpoint
added X-API-Key header
  • Loading branch information
StephenHodgson committed May 28, 2023
commit 459e41be8fda5c477fdb37b1a66976fb22490d23
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ protected override HttpClient SetupClient(HttpClient httpClient = null)
{
httpClient ??= new HttpClient();
httpClient.DefaultRequestHeaders.Add("User-Agent", "com.rest.blockadelabs");
httpClient.DefaultRequestHeaders.Add("X-API-Key", Authentication.Info.ApiKey);
return httpClient;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ namespace BlockadeLabs
{
public class BlockadeLabsSettingsInfo : ISettingsInfo
{
internal const string DefaultDomain = "blockade.cloudshell.run";
internal const string DefaultDomain = "backend.blockadelabs.com";
internal const string DefaultVersion = "v1";

public BlockadeLabsSettingsInfo()
{
Domain = DefaultDomain;
BaseRequestUrlFormat = $"https://{Domain}/{{0}}";
BaseRequestUrlFormat = $"https://{Domain}/api/{DefaultVersion}/{{0}}";
}

public BlockadeLabsSettingsInfo(string domain)
Expand All @@ -27,7 +28,7 @@ public BlockadeLabsSettingsInfo(string domain)
}

Domain = domain;
BaseRequestUrlFormat = $"https://{Domain}/{{0}}";
BaseRequestUrlFormat = $"https://{Domain}/api/{DefaultVersion}/{{0}}";
}

public string Domain { get; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace BlockadeLabs
{
public sealed class RootEndpoint : BlockadeLabsBaseEndpoint
public sealed class SkyboxEndpoint : BlockadeLabsBaseEndpoint
{
public RootEndpoint(BlockadeLabsClient client) : base(client) { }
public SkyboxEndpoint(BlockadeLabsClient client) : base(client) { }

protected override string Root => string.Empty;

Expand Down