How to route API properly?
<p>API returns 404 on my GET requests.</p>

<p>This is my API:</p>

<pre><code>@permission_classes((permissions.AllowAny,))
class ProductInfo(APIView):
    @staticmethod
    def get(request):
        product = models.Product.objects.filter(slug=request)
        s_product = ProductSerializer(product, many=False)
        return Response(s_product.data)
</code></pre>

<p>My router:</p>

<pre><code>router = DefaultRouter()
router.register(r'product', rest.ProductInfo, 'product')

urlpatterns = router.urls
</code></pre>

<p>I want my API to accept requsests in the following format:</p>

<pre><code>http://127.0.0.1:8000/api/catalog/product/slug-of-a-product/
</code></pre>

<p>and return serialized data.</p>

<p>What am I doing wrong?</p>