The documentation you are viewing is for an older version of this component.
Switch to the latest (v7) version.
Dotkernel API is not a one-to-one replacement of api-tools (former Apigility), but is only a potential solution to migrate to.
Functionalities, components and architecture are different.
See the Comparison between Dotkernel APi and api-tools.
There are at least two approaches for this transition: