BlazorStart/Start/Shared/Api/IBookmarkContainersApi.cs

22 lines
646 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using Refit;
namespace Start.Shared.Api {
public interface IBookmarkContainersApi {
[Get("/")]
Task<ApiResponse<IEnumerable<BookmarkContainerDto>>> GetAllBookmarkContainers();
[Get("/{bookmarkContainerId}")]
Task<ApiResponse<BookmarkContainerDto?>> GetBookmarkContainer(int bookmarkContainerId);
[Post("/Create")]
2022-04-19 20:04:38 +00:00
Task<ApiResponse<BookmarkContainerDto?>> CreateBookmarkContainer(string title,
int sortOrder);
[Delete("/Delete/{bookmarkContainerId}")]
Task<HttpResponseMessage> DeleteBookmarkContainer(int bookmarkContainerId);
}
}