Interface IRestService
Represents the REST HTTP service that provides a set of methods to communicate with Relativity REST APIs.
Under normal circumstances, it is not necessary to directly utilize the IRestService, as calls to it are made by the specific Services/Strategies.
Inherited Members
Namespace: Relativity.Testing.Framework.Api.Services
Assembly: Relativity.Testing.Framework.Api.dll
Syntax
public interface IRestService : IHttpService
Examples
In this example, we make a request to the GetRelativityVersionAsync, and deserialize it into a string value.
IRestService restService = RelativityFacade.Instance.Resolve<IRestService>();
string version = restService.Post<string>("Relativity.Services.InstanceDetails.IInstanceDetailsModule/InstanceDetailsService/GetRelativityVersionAsync");