C# Client Library
A C# Client Library for the AnalyzeRe REST API
APIResource.cs
Go to the documentation of this file.
1 using System.Runtime.Serialization;
2 
4 using Newtonsoft.Json;
5 
6 namespace AnalyzeRe
7 {
9  public abstract class APIResource : APIType, IAPIResource
10  {
13  [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
14  [DataMember(Order = 2)]
16  public string id { get; set; }
17 
20  [IgnoreDataMember, InternalMember]
21  public abstract string collection_name { get; }
22 
26  [IgnoreDataMember, InternalMember]
27  public string Path => API.GetResourcePath(this);
28  }
29 }
API methods / requests made available to the user.
string Path
The relative path to this endpoint from the root URL.
Definition: APIResource.cs:27
Base class used by all resources.
Definition: APIResource.cs:9
Specifies that a property is generated by the server and should not be specified on the client side d...
Base class used by all types and resources.
Definition: APIType.cs:7
abstract string collection_name
The relative path from the root of the API at which the collection of resources of this type reside...
Definition: APIResource.cs:21
Interface for Base class used by all resources.
Definition: IAPIResource.cs:8