You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Registers a resource `name` with a URI template pattern, which will use the given callback to respond to read requests.
627
+
* Registers a resource `name` with a template pattern, which will use the given callback to respond to read requests.
627
628
*/
628
629
resource(
629
630
name: string,
630
-
uriTemplate: UriTemplate,
631
+
template: ResourceTemplate,
631
632
readCallback: ReadResourceTemplateCallback,
632
633
): void;
633
634
634
635
/**
635
-
* Registers a resource `name` with a URI template pattern and metadata, which will use the given callback to respond to read requests.
636
+
* Registers a resource `name` with a template pattern and metadata, which will use the given callback to respond to read requests.
636
637
*/
637
638
resource(
638
639
name: string,
639
-
uriTemplate: UriTemplate,
640
+
template: ResourceTemplate,
640
641
metadata: ResourceMetadata,
641
642
readCallback: ReadResourceTemplateCallback,
642
643
): void;
643
644
644
-
/**
645
-
* Registers a resource `name` with a URI template pattern, which will use the list callback to enumerate matching resources and read callback to respond to read requests.
646
-
*/
647
-
resource(
648
-
name: string,
649
-
uriTemplate: UriTemplate,
650
-
listCallback: ListResourcesCallback,
651
-
readCallback: ReadResourceTemplateCallback,
652
-
): void;
653
-
654
-
/**
655
-
* Registers a resource `name` with a URI template pattern and metadata, which will use the list callback to enumerate matching resources and read callback to respond to read requests.
0 commit comments