Added API to DiscordBotCore
This commit is contained in:
20
DiscordBotCore/Interfaces/API/IEndpoint.cs
Normal file
20
DiscordBotCore/Interfaces/API/IEndpoint.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user