From 92da87546ecd72476c998c78314e4f8eb05c8ec5 Mon Sep 17 00:00:00 2001 From: Zechiax <106590288+Zechiax@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:36:09 +0200 Subject: [PATCH] fix loader endpoint, add more project types --- .../Models/Enums/Project/ProjectType.cs | 14 ++++++++++++-- .../ModrinthApiTests/EndpointTests.cs | 7 +++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/Modrinth.Net/Models/Enums/Project/ProjectType.cs b/src/Modrinth.Net/Models/Enums/Project/ProjectType.cs index cbd692e..8880df7 100644 --- a/src/Modrinth.Net/Models/Enums/Project/ProjectType.cs +++ b/src/Modrinth.Net/Models/Enums/Project/ProjectType.cs @@ -1,7 +1,7 @@ namespace Modrinth.Models.Enums.Project; /// -/// Type of a project +/// Type of project /// public enum ProjectType { @@ -28,5 +28,15 @@ public enum ProjectType /// /// Project is a datapack /// - Datapack + Datapack, + + /// + /// Project is a plugin + /// + Plugin, + + /// + /// Generic project type + /// + Project } \ No newline at end of file diff --git a/test/Modrinth.Net.Test/ModrinthApiTests/EndpointTests.cs b/test/Modrinth.Net.Test/ModrinthApiTests/EndpointTests.cs index cc5aca2..4211bf2 100644 --- a/test/Modrinth.Net.Test/ModrinthApiTests/EndpointTests.cs +++ b/test/Modrinth.Net.Test/ModrinthApiTests/EndpointTests.cs @@ -6,8 +6,7 @@ namespace Modrinth.Net.Test.ModrinthApiTests; [SetUpFixture] public class EndpointTests { - protected const string ModrinthNetTestProjectId = "zNefrWnf"; - protected const string ModrinthNetTestUploadedVersionId = "dJIVHDfy"; + protected const string ModrinthNetTestProjectId = "8crNATHo"; protected const string TestProjectSlug = "fabric-api"; @@ -62,13 +61,13 @@ public void SetUp() var configAuth = new ModrinthClientConfig { ModrinthToken = token, - BaseUrl = ModrinthClient.StagingBaseUrl, + BaseUrl = ModrinthClient.BaseUrl, UserAgent = userAgent.ToString() }; var configNoAuth = new ModrinthClientConfig { - BaseUrl = ModrinthClient.StagingBaseUrl, + BaseUrl = ModrinthClient.BaseUrl, UserAgent = userAgent.ToString() };