Allow for flexible paramTypes in APIView