From 023d304ea76bffb647242b31f4bb510b091d9f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9F=D0=B0=D1=80=D1=85=D0=BE=D0=BC=D0=B8=D0=BD?= Date: Fri, 7 Feb 2020 12:08:38 +0300 Subject: [PATCH] add docstring for ProductType. --- apps/product/views/back.py | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/apps/product/views/back.py b/apps/product/views/back.py index a660d242..be2b1bdc 100644 --- a/apps/product/views/back.py +++ b/apps/product/views/back.py @@ -111,13 +111,47 @@ class ProductListCreateBackOfficeView(ProductBackOfficeMixinView, class ProductTypeListCreateBackOfficeView(ProductTypeBackOfficeMixinView, generics.ListCreateAPIView): - """Product type back-office list-create view.""" + """ + Product type back-office list-create view. + + **GET** + ``` + Implement getting ProductType list. + ``` + + **POST** + ``` + Implement creating ProductType. + ``` + """ serializer_class = serializers.ProductTypeBackOfficeDetailSerializer class ProductTypeRUDBackOfficeView(ProductTypeBackOfficeMixinView, generics.RetrieveUpdateDestroyAPIView): - """Product type back-office retrieve-update-destroy view.""" + """ + Product type back-office retrieve-update-destroy view. + + **GET** + ``` + Implement getting ProductType object. + ``` + + **PUT** + ``` + Implement updating ProductType. + ``` + + **PATCH** + ``` + Implement partial updating ProductType. + ``` + + **DELETE** + ``` + Implement deleting ProductType. + ``` + """ serializer_class = serializers.ProductTypeBackOfficeDetailSerializer