C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
Describes an additional sub-resource available off a resource which is not actually a property of that resource. Allows APIResources to quickly define additional endpoints off their URLs which in turn support one or more REST methods. More...
Public Member Functions | |
void | ValidateOwnerHasId () |
Verifies the owner exists and has been POSTed, ensuring that it is safe to invoke actions on this SubResourceEndpoint. | |
Protected Member Functions | |
SubResourceEndpoint (IEndpoint owner, string relativePath) | |
Defines a new sub-resource or endpoint off the current resource. | |
Properties | |
IEndpoint | Owner [get] |
The endpoint off of which this sub-endpoint exists. | |
string | Path [get] |
The relative path to this endpoint from the root server URL. | |
string | RelativePathFromOwner [get] |
The relative path to this endpoint from its owner. | |
Describes an additional sub-resource available off a resource which is not actually a property of that resource. Allows APIResources to quickly define additional endpoints off their URLs which in turn support one or more REST methods.
Definition at line 8 of file SubResourceEndpoint.cs.
|
inlineprotected |
Defines a new sub-resource or endpoint off the current resource.
owner | The resource which owns this sub-resource |
relativePath | The relative path to endpoint from its owner. |
Definition at line 25 of file SubResourceEndpoint.cs.
|
inline |
Verifies the owner exists and has been POSTed, ensuring that it is safe to invoke actions on this SubResourceEndpoint.
ArgumentException | If the resource's id is null or empty. |
Definition at line 34 of file SubResourceEndpoint.cs.
|
get |
The endpoint off of which this sub-endpoint exists.
Definition at line 12 of file SubResourceEndpoint.cs.
|
get |
The relative path to this endpoint from the root server URL.
The relative path to this endpoint from the root URL.
Implements AnalyzeRe.APITypes.IEndpoint.
Definition at line 19 of file SubResourceEndpoint.cs.
|
get |
The relative path to this endpoint from its owner.
Definition at line 15 of file SubResourceEndpoint.cs.