add docstring for Back office

This commit is contained in:
Александр Пархомин 2020-02-06 18:18:39 +03:00
parent 32439c9db6
commit d6bd20ac09

View File

@ -92,7 +92,20 @@ class ProductDetailBackOfficeView(ProductBackOfficeMixinView,
class ProductListCreateBackOfficeView(ProductBackOfficeMixinView,
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
@ -120,13 +133,47 @@ class ProductTypeTagCategoryCreateBackOfficeView(ProductTypeBackOfficeMixinView,
class ProductSubTypeListCreateBackOfficeView(ProductSubTypeBackOfficeMixinView,
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
class ProductSubTypeRUDBackOfficeView(ProductSubTypeBackOfficeMixinView,
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