mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
Add sticker manager in non admin section of admin api test client
This commit is contained in:
1 parent
bb9075667c
commit
16e90d228e
3 files changed
+252
-3
No files matched your search
+9
-2
@@ -282,9 +282,9 @@ public class StreamingHttpClient {
|
||||
return await SendAsync(request, cancellationToken);
|
||||
}
|
||||
|
||||
public async Task DeleteAsync(string url) {
|
||||
public async Task<HttpResponseMessage> DeleteAsync(string url) {
|
||||
var request = new HttpRequestMessage(HttpMethod.Delete, url);
|
||||
await SendAsync(request);
|
||||
return await SendAsync(request);
|
||||
}
|
||||
|
||||
public async Task<HttpResponseMessage> DeleteAsJsonAsync<T>(string url, T payload) {
|
||||
@@ -293,5 +293,12 @@ public class StreamingHttpClient {
|
||||
};
|
||||
return await SendAsync(request);
|
||||
}
|
||||
|
||||
public async Task<HttpResponseMessage> PatchAsJsonAsync<T>(string url, T payload) {
|
||||
var request = new HttpRequestMessage(new HttpMethod("PATCH"), url) {
|
||||
Content = new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, "application/json")
|
||||
};
|
||||
return await SendAsync(request);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user