Decorators
apikey_required
Wraps endpoint and check for FIO API Key
Parameters:
Name | Type | Description | Default |
---|---|---|---|
func |
method
|
Wrapped endpoint method |
required |
Raises:
Type | Description |
---|---|
SystemExit
|
Decorator can only be used on endpoints |
NoAPIKeyProvided
|
FIO API Key not provided, but endpoint requires it. |
Returns:
Name | Type | Description |
---|---|---|
method |
any
|
Executed endpoint method |