resourceTemplate

UDA marking a method as a resource template (URI contains {var} placeholders). The method receives the captured parameters as its arguments.

An optional human-readable title may be supplied for display purposes; it is independent of the programmatic name.

@safe
struct resourceTemplate {
string uriTemplate;
string name;
string mimeType;
string description;
}

Members

Variables

title
string title;

optional human-readable display name (empty = unset)