BlazorStart/Start/Shared/Api/IBookmarkGroupsApi.cs

18 lines
500 B
C#
Raw Normal View History

2021-12-05 23:50:48 +00:00
using System.Net.Http;
using System.Threading.Tasks;
using Refit;
namespace Start.Shared.Api {
public interface IBookmarkGroupsApi {
[Get("/{bookmarkGroupId}")]
Task<ApiResponse<BookmarkGroupDto?>> GetBookmarkGroup(int bookmarkGroupId);
[Post("/Create")]
Task<ApiResponse<BookmarkGroupDto?>> CreateBookmarkGroup(string title, string color,
int bookmarkContainerId);
[Delete("/Delete/{bookmarkGroupId}")]
Task<HttpResponseMessage> DeleteBookmarkGroup(int bookmarkGroupId);
}
}