Product-Manager/z3/product-manager-backend/products/urls.py
2022-05-22 17:33:07 +05:30

21 lines
430 B
Python

from typing import List
from django.urls import path
from products.views import ProductByIDAPIView, ProductListCreateAPIView
app_name = 'products'
urlpatterns: List[str] = [
path(
'products/',
ProductListCreateAPIView.as_view(),
name='product_list_create_api_view',
),
path(
'products/<int:id>',
ProductByIDAPIView.as_view(),
name='product_api_view_by_id',
),
]