BlazorStart/Start/Shared/Api/IBookmarkGroupsApi.cs

18 lines
515 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,
2022-04-19 20:04:38 +00:00
int sortOrder, int bookmarkContainerId);
2021-12-05 23:50:48 +00:00
[Delete("/Delete/{bookmarkGroupId}")]
Task<HttpResponseMessage> DeleteBookmarkGroup(int bookmarkGroupId);
}
}