Interface IRESTResource
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
REST resource metadata object.
[Guid("B5561EA3-2950-4E21-9E4F-B1003B2A1BAF")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRESTResource
Properties
IsCollection
Specifies collection resource.
bool IsCollection { get; set; }
Property Value
IsDefaultCollection
Specifies 'default' collection resource that can be accessed without explicitly using its name in the URL.
bool IsDefaultCollection { get; set; }
Property Value
IsStatic
This flag marks resources that do not change over time.
bool IsStatic { get; set; }
Property Value
Name
Resource name. Used in IRESTRequestHandler's schema generation and url parsing.
string Name { get; set; }
Property Value
RequiredCapability
Required capability for the resource.
string RequiredCapability { get; set; }
Property Value
SupportsETag
This flag is only for a root level resource. If this flag is true, IRRH implementation supports ETag.
bool SupportsETag { get; set; }
Property Value
Methods
AddOperation(IRESTOperation)
Adds child operation.
void AddOperation(IRESTOperation o)
Parameters
AddResource(IRESTResource)
Adds child resource.
void AddResource(IRESTResource r)
Parameters
FindChildOperation(string)
Finds child operation, non-recursive.
IRESTOperation FindChildOperation(string Name)
Parameters
Namestring
Returns
FindChildResource(string)
Finds child resource, non-recursive.
IRESTResource FindChildResource(string Name)
Parameters
Namestring
Returns
GetOperations()
Returns enumerator for operations.
IEnumRESTOperation GetOperations()
Returns
GetResources()
Returns enumerator for immediate child resources.
IEnumRESTResource GetResources()
Returns
ToJSONObject()
Converts resource object to JSON representation.
IJSONObject ToJSONObject()