C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
APIResource.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2
4using Newtonsoft.Json;
5
6namespace 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}
Base class used by all resources.
string collection_name
The relative path from the root of the API at which the collection of resources of this type reside.
string Path
The relative path to this endpoint from the root URL.
Base class used by all types and resources.
Definition APIType.cs:8
API methods / requests made available to the user.
Specifies that a property is generated by the server and should not be specified on the client side d...
Interface for Base class used by all resources.