Add sticker manager in non admin section of admin api test client

This commit is contained in:
Rory& committed 2025-12-29 11:40:02 +01:00
1 parent bb9075667c
commit 16e90d228e
3 files changed
+252 -3

No files matched your search

@@ -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