add docstring for establishment type

This commit is contained in:
Александр Пархомин 2020-02-06 17:45:01 +03:00
parent 8aa7f89fe2
commit f6d41f878f

View File

@ -610,7 +610,19 @@ class RemoveAwardView(generics.DestroyAPIView):
class EstablishmentTypeListCreateView(generics.ListCreateAPIView):
"""Establishment type list/create view."""
"""
Establishment type list/create view.
**GET**
```
Implement getting list of Establishment type.
```
**POST**
```
Implement creating Establishment type
```
"""
serializer_class = serializers.EstablishmentTypeBaseSerializer
queryset = models.EstablishmentType.objects.select_related('default_image')
pagination_class = None
@ -618,7 +630,30 @@ class EstablishmentTypeListCreateView(generics.ListCreateAPIView):
class EstablishmentTypeRUDView(generics.RetrieveUpdateDestroyAPIView):
"""Establishment type retrieve/update/destroy view."""
"""
Establishment type retrieve/update/destroy view.
**GET**
```
Implement getting Establishment type object by id.
```
**PUT**
```
Implement update Establishment type.
```
**PATCH**
```
Implement partial update Establishment type.
```
**DELETE**
```
Implement deleting Establishment type.
```
"""
serializer_class = serializers.EstablishmentTypeBaseSerializer
queryset = models.EstablishmentType.objects.select_related('default_image')
permission_classes = get_permission_classes()