add docstring for Back office
This commit is contained in:
parent
32439c9db6
commit
d6bd20ac09
|
|
@ -92,7 +92,20 @@ class ProductDetailBackOfficeView(ProductBackOfficeMixinView,
|
||||||
|
|
||||||
class ProductListCreateBackOfficeView(ProductBackOfficeMixinView,
|
class ProductListCreateBackOfficeView(ProductBackOfficeMixinView,
|
||||||
generics.ListCreateAPIView):
|
generics.ListCreateAPIView):
|
||||||
"""Product back-office list-create view."""
|
"""
|
||||||
|
Product back-office list-create view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting product back-office list.
|
||||||
|
```
|
||||||
|
|
||||||
|
**POST**
|
||||||
|
```
|
||||||
|
Implement creating product back-office.
|
||||||
|
```
|
||||||
|
|
||||||
|
"""
|
||||||
serializer_class = serializers.ProductBackOfficeDetailSerializer
|
serializer_class = serializers.ProductBackOfficeDetailSerializer
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -120,13 +133,47 @@ class ProductTypeTagCategoryCreateBackOfficeView(ProductTypeBackOfficeMixinView,
|
||||||
|
|
||||||
class ProductSubTypeListCreateBackOfficeView(ProductSubTypeBackOfficeMixinView,
|
class ProductSubTypeListCreateBackOfficeView(ProductSubTypeBackOfficeMixinView,
|
||||||
generics.ListCreateAPIView):
|
generics.ListCreateAPIView):
|
||||||
"""Product sub type back-office list-create view."""
|
"""
|
||||||
|
Product sub type back-office list-create view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting product sub type back-office list.
|
||||||
|
```
|
||||||
|
|
||||||
|
**POST**
|
||||||
|
```
|
||||||
|
Implement creating product sub type back-office.
|
||||||
|
```
|
||||||
|
"""
|
||||||
serializer_class = serializers.ProductSubTypeBackOfficeDetailSerializer
|
serializer_class = serializers.ProductSubTypeBackOfficeDetailSerializer
|
||||||
|
|
||||||
|
|
||||||
class ProductSubTypeRUDBackOfficeView(ProductSubTypeBackOfficeMixinView,
|
class ProductSubTypeRUDBackOfficeView(ProductSubTypeBackOfficeMixinView,
|
||||||
generics.RetrieveUpdateDestroyAPIView):
|
generics.RetrieveUpdateDestroyAPIView):
|
||||||
"""Product sub type back-office retrieve-update-destroy view."""
|
"""
|
||||||
|
Product sub type back-office retrieve-update-destroy view.
|
||||||
|
|
||||||
|
**GET**
|
||||||
|
```
|
||||||
|
Implement getting object Product sub type back-office.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PUT**
|
||||||
|
```
|
||||||
|
Implement updating Product sub type back-office.
|
||||||
|
```
|
||||||
|
|
||||||
|
**PATCH**
|
||||||
|
```
|
||||||
|
Implement partial updating Product sub type back-office.
|
||||||
|
```
|
||||||
|
|
||||||
|
**DELETE**
|
||||||
|
```
|
||||||
|
Implement deleting Product sub type back office
|
||||||
|
```
|
||||||
|
"""
|
||||||
serializer_class = serializers.ProductSubTypeBackOfficeDetailSerializer
|
serializer_class = serializers.ProductSubTypeBackOfficeDetailSerializer
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user