-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from Gml-Launcher/develop
Merge develop and master branches
- Loading branch information
Showing
60 changed files
with
1,617 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
![Banner](https://github.com/user-attachments/assets/48ab1c5d-6c38-4d1a-80ba-92db9afe8437) | ||
|
||
|
||
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Gml-Launcher/Gml.Web.Api/docker-package-publish.yml?label=Tests&style=for-the-badge&branch=master) | ||
![GitHub contributors](https://img.shields.io/github/contributors/Gml-Launcher/Gml.Web.Api?style=for-the-badge) | ||
![Size](https://img.shields.io/github/repo-size/Gml-Launcher/Gml.Web.Api?style=for-the-badge) | ||
![License](https://img.shields.io/github/license/Gml-Launcher/Gml.Web.Api?style=for-the-badge) | ||
|
||
# Gml.Web.Api | ||
|
||
This is a RESTful API that provides an interface for interaction with server data.This is a comprehensive project, | ||
designed to facilitate rapid deployment of server infrastructure for Minecraft game profiles: Forge, NeoForge, Fabric, LiteLoader. | ||
|
||
# Documentation | ||
[Official documentation](https://wiki.recloud.tech) | ||
|
||
[Official wiki mirror](https://gml-launcher.github.io/Gml.Docs/home.html) |
Submodule Gml.Core
updated
52 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Gml.Web.Api.Domains.Integrations; | ||
|
||
public class AzuriomAuthResult | ||
{ | ||
[JsonProperty("id")] | ||
public int Id { get; set; } | ||
|
||
[JsonProperty("username")] | ||
public string Username { get; set; } | ||
|
||
[JsonProperty("email")] | ||
public string Email { get; set; } | ||
|
||
[JsonProperty("email_verified")] | ||
public bool EmailVerified { get; set; } | ||
|
||
[JsonProperty("money")] | ||
public int Money { get; set; } | ||
|
||
[JsonProperty("banned")] | ||
public bool Banned { get; set; } | ||
|
||
[JsonProperty("uuid")] | ||
public string Uuid { get; set; } | ||
|
||
[JsonProperty("access_token")] | ||
public string AccessToken { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public DateTime CreatedAt { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Gml.Web.Api.Domains.Integrations; | ||
|
||
public class UnicoreAuthResult | ||
{ | ||
[JsonProperty("user")] | ||
public User User { get; set; } | ||
|
||
[JsonProperty("accessToken")] | ||
public string AccessToken { get; set; } | ||
|
||
[JsonProperty("refreshToken")] | ||
public string RefreshToken { get; set; } | ||
} | ||
|
||
public class Ban | ||
{ | ||
[JsonProperty("reason")] | ||
public string Reason { get; set; } | ||
|
||
[JsonProperty("expires")] | ||
public object Expires { get; set; } | ||
|
||
[JsonProperty("created")] | ||
public DateTime Created { get; set; } | ||
} | ||
|
||
public class User | ||
{ | ||
[JsonProperty("uuid")] | ||
public string Uuid { get; set; } | ||
|
||
[JsonProperty("username")] | ||
public string Username { get; set; } | ||
|
||
[JsonProperty("email")] | ||
public string Email { get; set; } | ||
|
||
[JsonProperty("password")] | ||
public string Password { get; set; } | ||
|
||
[JsonProperty("superuser")] | ||
public bool Superuser { get; set; } | ||
|
||
[JsonProperty("activated")] | ||
public bool Activated { get; set; } | ||
|
||
[JsonProperty("accessToken")] | ||
public object AccessToken { get; set; } | ||
|
||
[JsonProperty("serverId")] | ||
public object ServerId { get; set; } | ||
|
||
[JsonProperty("two_factor_enabled")] | ||
public object TwoFactorEnabled { get; set; } | ||
|
||
[JsonProperty("two_factor_secret")] | ||
public object TwoFactorSecret { get; set; } | ||
|
||
[JsonProperty("two_factor_secret_temp")] | ||
public string TwoFactorSecretTemp { get; set; } | ||
|
||
[JsonProperty("real")] | ||
public int Real { get; set; } | ||
|
||
[JsonProperty("virtual")] | ||
public int Virtual { get; set; } | ||
|
||
[JsonProperty("perms")] | ||
public object Perms { get; set; } | ||
|
||
[JsonProperty("created")] | ||
public DateTime Created { get; set; } | ||
|
||
[JsonProperty("updated")] | ||
public DateTime Updated { get; set; } | ||
|
||
[JsonProperty("cloak")] | ||
public object Cloak { get; set; } | ||
|
||
[JsonProperty("ban")] | ||
public Ban Ban { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using GmlCore.Interfaces.Launcher; | ||
|
||
namespace Gml.Web.Api.Domains.Sentry; | ||
|
||
public class SentryBugs | ||
{ | ||
public string Exception { get; set; } | ||
public long CountUsers { get; set; } | ||
public long Count { get; set; } | ||
public IEnumerable<SentryGraphic> Graphics { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
|
||
namespace Gml.Web.Api.Domains.Sentry; | ||
|
||
public class SentryGraphic | ||
{ | ||
public DateTime Month { get; set; } | ||
public long Count { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using GmlCore.Interfaces.User; | ||
|
||
namespace Gml.Web.Api.Dto.Player; | ||
|
||
public class PlayerTextureDto : IPlayerTexture | ||
{ | ||
public string TextureSkinUrl { get; set; } = null!; | ||
public string TextureCloakUrl { get; set; } = null!; | ||
public string TextureSkinGuid { get; set; } = null!; | ||
public string TextureCloakGuid { get; set; } = null!; | ||
public string FullSkinUrl { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
using Gml.Web.Api.Domains.Sentry; | ||
|
||
namespace Gml.Web.Api.Dto.Sentry; | ||
|
||
public class BaseSentryError | ||
{ | ||
public IEnumerable<SentryBugs> Bugs { get; set; } | ||
public long CountUsers { get; set; } | ||
public long Count { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Gml.Web.Api.Dto.Sentry; | ||
|
||
public class SentryEventDto | ||
{ | ||
[JsonProperty("sdk")] | ||
public Sdk Sdk { get; set; } | ||
|
||
[JsonProperty("event_id")] | ||
public string EventId { get; set; } | ||
|
||
[JsonProperty("trace")] | ||
public Trace Trace { get; set; } | ||
|
||
[JsonProperty("sent_at")] | ||
public DateTime SentAt { get; set; } | ||
} | ||
|
||
public class Sdk | ||
{ | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("version")] | ||
public string Version { get; set; } | ||
} | ||
|
||
public class Trace | ||
{ | ||
[JsonProperty("trace_id")] | ||
public string TraceId { get; set; } | ||
|
||
[JsonProperty("public_key")] | ||
public string PublicKey { get; set; } | ||
|
||
[JsonProperty("release")] | ||
public string Release { get; set; } | ||
|
||
[JsonProperty("environment")] | ||
public string Environment { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Gml.Web.Api.Dto.Sentry; | ||
|
||
public class SentryEventLengthDto | ||
{ | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty("length")] | ||
public int Length { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
using Gml.Web.Api.Domains.Sentry; | ||
using GmlCore.Interfaces.Launcher; | ||
|
||
namespace Gml.Web.Api.Dto.Sentry; | ||
|
||
public class SentryExceptionReadDto | ||
{ | ||
public string Exception { get; set; } | ||
public long CountUsers { get; set; } | ||
public long Count { get; set; } | ||
public IEnumerable<SentryGraphic> Graphic { get; set; } | ||
public IEnumerable<SentryOperationSystem> OperationSystems { get; set; } | ||
public IBugInfo BugInfo { get; set; } | ||
public string StackTrace { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
using GmlCore.Interfaces.Sentry; | ||
|
||
namespace Gml.Web.Api.Dto.Sentry; | ||
|
||
public class SentryFilterDto | ||
{ | ||
public ProjectType ProjectType { get; set; } | ||
public DateTime? DateFrom { get; set; } | ||
public DateTime? DateTo { get; set; } | ||
} |
Oops, something went wrong.