add docstring for phone
This commit is contained in:
parent
12b56da53a
commit
e990810839
|
|
@ -533,7 +533,20 @@ class PlateRUDView(generics.RetrieveUpdateDestroyAPIView):
|
|||
|
||||
|
||||
class PhonesListCreateView(generics.ListCreateAPIView):
|
||||
"""Phones list create view."""
|
||||
"""
|
||||
Phones list create view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting Phone list.
|
||||
```
|
||||
|
||||
**POST**
|
||||
```
|
||||
Implement creating Phone.
|
||||
```
|
||||
|
||||
"""
|
||||
serializer_class = serializers.ContactPhoneBackSerializers
|
||||
queryset = models.ContactPhone.objects.all()
|
||||
pagination_class = None
|
||||
|
|
@ -544,7 +557,29 @@ class PhonesListCreateView(generics.ListCreateAPIView):
|
|||
|
||||
|
||||
class PhonesRUDView(generics.RetrieveUpdateDestroyAPIView):
|
||||
"""Phones RUD view."""
|
||||
"""
|
||||
Phones RUD view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting Phone object.
|
||||
```
|
||||
|
||||
**PUT**
|
||||
```
|
||||
Implement updating Phone.
|
||||
```
|
||||
|
||||
**PATCH**
|
||||
```
|
||||
Implement partial updating Phone.
|
||||
```
|
||||
|
||||
**DELETE**
|
||||
```
|
||||
Implement deleting Phone.
|
||||
```
|
||||
"""
|
||||
serializer_class = serializers.ContactPhoneBackSerializers
|
||||
queryset = models.ContactPhone.objects.all()
|
||||
permission_classes = get_permission_classes(
|
||||
|
|
@ -564,7 +599,7 @@ class EmailListCreateView(generics.ListCreateAPIView):
|
|||
|
||||
**POST**
|
||||
```
|
||||
Implement creating Email
|
||||
Implement creating Email.
|
||||
```
|
||||
"""
|
||||
serializer_class = serializers.ContactEmailBackSerializers
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user