Show / Hide Table of Contents

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
IHttpService.BaseUrl
IHttpService.Username
IHttpService.Get<TResult>(String, UserCredentials)
IHttpService.Post<TResult>(String, Object, Double, UserCredentials)
IHttpService.Post(String, Object, UserCredentials)
IHttpService.Put<TResult>(String, Object, UserCredentials)
IHttpService.Put(String, Object, UserCredentials)
IHttpService.Delete<TResult>(String, Object, UserCredentials)
IHttpService.Delete(String, Object, UserCredentials)
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");
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX