2021-11-29 06:32:21 +00:00
|
|
|
|
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);
|
2021-11-29 06:32:21 +00:00
|
|
|
|
|
|
|
|
|
[Delete("/Delete/{bookmarkContainerId}")]
|
|
|
|
|
Task<HttpResponseMessage> DeleteBookmarkContainer(int bookmarkContainerId);
|
|
|
|
|
}
|
|
|
|
|
}
|