ITMSMCPResourceAttribute Interface
Marks a method as the reader of a resource.
API unit family: TMS.MCP.Attributes
Extends: ITMSMCPCustomAttribute
Syntax
ITMSMCPResourceAttribute = interface(ITMSMCPCustomAttribute)
Remarks
The method receives the requested URI as its only parameter and returns the resource content. The declaration also needs a URI or a URI template, otherwise it is skipped. Note that a method marked only as a resource is registered and listed, but is never invoked: the generated reader resolves the method through the tool dispatcher, which only accepts a method that is also marked as a tool. Apply the tool attribute as well for the reader to run.