spotter v0.3.1 Spotter.Endpoint.Dynamic
Wrapper for a resource with the dynamic path.
Link to this section Summary
Functions
Defines the endpoint with dynamic path
Checks for all specified permissions from the first list in the second
Generates a regular expression based on the passed path
string argument. Can raise the
Regex.CompileError in case of errors
Checks that the passed permissions can provide an access to the certain resource
Checking a match of the passed path with the endpoint path via regex search
Returns a new instance of Spotter.Endpoint.Dynamic struct
Post-processing data before passing it further
Validate an input data
Link to this section Functions
Defines the endpoint with dynamic path.
- :regex - Regex expression for further checks with the passed path. Required.
- :base.path - Path to the recource. For example,
api.learderboard.get.{id}
. Required. - :base.permissions - List of permissions, required for getting an access to the resource. Default is
[]
.
Checks for all specified permissions from the first list in the second.
Generates a regular expression based on the passed path
string argument. Can raise the
Regex.CompileError in case of errors.
Checks that the passed permissions can provide an access to the certain resource.
Checking a match of the passed path with the endpoint path via regex search.
Returns a new instance of Spotter.Endpoint.Dynamic struct.
Post-processing data before passing it further.
Validate an input data.