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

bool

IsDefaultCollection

Specifies 'default' collection resource that can be accessed without explicitly using its name in the URL.

bool IsDefaultCollection { get; set; }

Property Value

bool

IsStatic

This flag marks resources that do not change over time.

bool IsStatic { get; set; }

Property Value

bool

Name

Resource name. Used in IRESTRequestHandler's schema generation and url parsing.

string Name { get; set; }

Property Value

string

RequiredCapability

Required capability for the resource.

string RequiredCapability { get; set; }

Property Value

string

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

bool

Methods

AddOperation(IRESTOperation)

Adds child operation.

void AddOperation(IRESTOperation o)

Parameters

o IRESTOperation

AddResource(IRESTResource)

Adds child resource.

void AddResource(IRESTResource r)

Parameters

r IRESTResource

FindChildOperation(string)

Finds child operation, non-recursive.

IRESTOperation FindChildOperation(string Name)

Parameters

Name string

Returns

IRESTOperation

FindChildResource(string)

Finds child resource, non-recursive.

IRESTResource FindChildResource(string Name)

Parameters

Name string

Returns

IRESTResource

GetOperations()

Returns enumerator for operations.

IEnumRESTOperation GetOperations()

Returns

IEnumRESTOperation

GetResources()

Returns enumerator for immediate child resources.

IEnumRESTResource GetResources()

Returns

IEnumRESTResource

ToJSONObject()

Converts resource object to JSON representation.

IJSONObject ToJSONObject()

Returns

IJSONObject