add docstring for social socialchoice
This commit is contained in:
parent
e990810839
commit
ea25ea7fbd
|
|
@ -470,7 +470,20 @@ class MenuUploadsCreateView(generics.CreateAPIView):
|
|||
|
||||
|
||||
class SocialChoiceListCreateView(generics.ListCreateAPIView):
|
||||
"""SocialChoice list create view."""
|
||||
"""
|
||||
SocialChoice list create view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting SocialChoice list.
|
||||
```
|
||||
|
||||
**POST**
|
||||
```
|
||||
Implement creating SocialChoice.
|
||||
```
|
||||
|
||||
"""
|
||||
serializer_class = serializers.SocialChoiceSerializers
|
||||
queryset = models.SocialChoice.objects.all()
|
||||
pagination_class = None
|
||||
|
|
@ -481,7 +494,29 @@ class SocialChoiceListCreateView(generics.ListCreateAPIView):
|
|||
|
||||
|
||||
class SocialChoiceRUDView(generics.RetrieveUpdateDestroyAPIView):
|
||||
"""SocialChoice RUD view."""
|
||||
"""
|
||||
SocialChoice RUD view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting SocialChoice object.
|
||||
```
|
||||
|
||||
**PUT**
|
||||
```
|
||||
Implement updating SocialChoice.
|
||||
```
|
||||
|
||||
**PATCH**
|
||||
```
|
||||
Implement partial updating SocialChoice.
|
||||
```
|
||||
|
||||
**DELETE**
|
||||
```
|
||||
Implement deleting SocialChoice.
|
||||
```
|
||||
"""
|
||||
serializer_class = serializers.SocialChoiceSerializers
|
||||
queryset = models.SocialChoice.objects.all()
|
||||
permission_classes = get_permission_classes(
|
||||
|
|
@ -491,7 +526,19 @@ class SocialChoiceRUDView(generics.RetrieveUpdateDestroyAPIView):
|
|||
|
||||
|
||||
class SocialListCreateView(generics.ListCreateAPIView):
|
||||
"""Social list create view."""
|
||||
"""
|
||||
Social list create view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting Social list.
|
||||
```
|
||||
|
||||
**POST**
|
||||
```
|
||||
Implement creating Social.
|
||||
```
|
||||
"""
|
||||
serializer_class = serializers.SocialNetworkSerializers
|
||||
queryset = models.SocialNetwork.objects.all()
|
||||
pagination_class = None
|
||||
|
|
@ -502,7 +549,29 @@ class SocialListCreateView(generics.ListCreateAPIView):
|
|||
|
||||
|
||||
class SocialRUDView(generics.RetrieveUpdateDestroyAPIView):
|
||||
"""Social RUD view."""
|
||||
"""
|
||||
Social RUD view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting Social object.
|
||||
```
|
||||
|
||||
**PUT**
|
||||
```
|
||||
Implement updating Social.
|
||||
```
|
||||
|
||||
**PATCH**
|
||||
```
|
||||
Implement partial updating Social.
|
||||
```
|
||||
|
||||
**DELETE**
|
||||
```
|
||||
Implement deleting Social.
|
||||
```
|
||||
"""
|
||||
serializer_class = serializers.SocialNetworkSerializers
|
||||
queryset = models.SocialNetwork.objects.all()
|
||||
permission_classes = get_permission_classes(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user