Specify correct API type for createRESTHandler()