The name of the method.
The declaration of the method.
The constructor of the RsterApiMethod class.
The name of the method.
The description of the method.
The declaration of the method.
Optional
httpPath: stringThe http path of the method. Does not include the parent module's path, only the path for the method's condition. If not provided, it will be generated from the name and declaration.
Optional
httpMethod: MethodThe http method of the method. If not provided, it will be defaulted to ALL.
Optional
action: ActionFunction<DECLARATION>The action of the method. If not provided, it will be defaulted to a method that throws an error.
Optional
Readonly
actionThe action of the method. If not provided, it will be defaulted to a method that throws an error.
Readonly
declarationThe declaration of the method.
Readonly
descriptionThe description of the method.
Optional
Readonly
httpThe http method of the method. If not provided, it will be defaulted to ALL.
Readonly
httpThe http path of the method. Does not include the parent module's path, only the path for the method's condition.
Readonly
nameThe name of the method.
Get the json representation of the method. Used to get info about the method.
The json representation of the method.
RsterApiMethodJson
The native method of the method. This method can be used to call the method directly, without using the rest api.
The native method of the method.
Generated using TypeDoc
Rster method class. Used to create a method with
@rster/builder
.We use type parameters to more specifically index the typing of the method. This allows us to get the correct typing for the
native
method. From a functional perspective, the type parameters are not needed.