Added API to DiscordBotCore

This commit is contained in:
2024-11-02 15:43:35 +02:00
parent bd3f79430b
commit f2a9982d41
13 changed files with 343 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
using System.Threading.Tasks;
using DiscordBotCore.API;
using DiscordBotCore.Others;
namespace DiscordBotCore.Interfaces.API;
public enum EndpointType
{
Get,
Post,
Put,
Delete
}
public interface IEndpoint
{
public string Path { get; }
public EndpointType HttpMethod { get; }
public Task<ApiResponse> HandleRequest(string? jsonRequest);
}