BlazorStart/Start/Shared/Api/IBookmarksApi.cs
2021-12-13 16:27:13 -08:00

18 lines
458 B
C#

using System.Threading.Tasks;
using Refit;
using System.Net.Http;
namespace Start.Shared.Api {
public interface IBookmarksApi {
[Get("/{bookmarkId}")]
Task<ApiResponse<BookmarkDto?>> GetBookmark(int bookmarkId);
[Post("/Create")]
Task<ApiResponse<BookmarkDto?>> CreateBookmark(string title, string url, string? notes,
int bookmarkGroupId);
[Delete("/Delete/{bookmarkId}")]
Task<HttpResponseMessage> DeleteBookmark(int bookmarkId);
}
}