BlazorStart/Start/Shared/Api/IBookmarkGroupsApi.cs
2022-04-19 13:04:38 -07:00

18 lines
515 B
C#

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 sortOrder, int bookmarkContainerId);
[Delete("/Delete/{bookmarkGroupId}")]
Task<HttpResponseMessage> DeleteBookmarkGroup(int bookmarkGroupId);
}
}