New: Use System.Text.Json for Nancy and SignalR

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2021-02-23 21:18:48 +00:00
parent 428c9c034c
commit 596ba2dcbc
39 changed files with 370 additions and 81 deletions

View File

@@ -18,6 +18,7 @@ using Prowlarr.Api.V1.Config;
using Prowlarr.Api.V1.History;
using Prowlarr.Api.V1.Tags;
using RestSharp;
using RestSharp.Serializers.SystemTextJson;
namespace NzbDrone.Integration.Test
{
@@ -79,6 +80,7 @@ namespace NzbDrone.Integration.Test
RestClient = new RestClient(RootUrl + "api/v1/");
RestClient.AddDefaultHeader("Authentication", ApiKey);
RestClient.AddDefaultHeader("X-Api-Key", ApiKey);
RestClient.UseSystemTextJson();
Commands = new CommandClient(RestClient, ApiKey);
History = new ClientBase<HistoryResource>(RestClient, ApiKey);