Example of an APIMethod base class, an attribute type restriction mixin, and a sample class that implements both.