Skip to main content

HS.REST.Model.Resource

abstract class HS.REST.Model.Resource extends HS.REST.Model.ISerializable, %pkg.isc.rest.model.resource

Base class for implementing exposure of a custom REST resource.
General use cases: Acts as an intermediate layer between HS code and isc.rest to enforce best practices relevant to HS.

Method Inventory

Parameters

parameter PRODUCT = hs;
Product name of which the resource belongs to, default to 'hs'. Subclasses MAY override this. Then it must use this parameter as in MEDIATYPE.

Methods

final classmethod Version() as %Integer
Returns the version number of this resource by extracting it from the well formed MEDIATYPE value.

Inherited Members

Inherited Methods

Subclasses

FeedbackOpens in a new tab