mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-24 12:38:30 +00:00
21 lines
557 B
C#
21 lines
557 B
C#
|
using System.Net.Http.Headers;
|
||
|
using NftFaucet.UploadPlugins.NftStorage.Models;
|
||
|
using RestEase;
|
||
|
|
||
|
namespace NftFaucet.UploadPlugins.NftStorage.ApiClients;
|
||
|
|
||
|
[BaseAddress("https://api.nft.storage")]
|
||
|
public interface INftStorageApiClient
|
||
|
{
|
||
|
[Header("Authorization")]
|
||
|
public AuthenticationHeaderValue Auth { get; set; }
|
||
|
|
||
|
[Post("upload")]
|
||
|
[AllowAnyStatusCode]
|
||
|
Task<Response<UploadResponse>> UploadFile([Body] MultipartContent content);
|
||
|
|
||
|
[Get]
|
||
|
[AllowAnyStatusCode]
|
||
|
Task<Response<object>> ListFiles([Query("limit")] int limit = 1);
|
||
|
}
|