add docstring for Advertisement
This commit is contained in:
parent
400dc1bab2
commit
94750120c9
|
|
@ -23,14 +23,48 @@ class AdvertisementBackOfficeViewMixin(generics.GenericAPIView):
|
|||
|
||||
|
||||
class AdvertisementListCreateView(AdvertisementBackOfficeViewMixin, generics.ListCreateAPIView):
|
||||
"""List|Create advertisement view."""
|
||||
"""
|
||||
List/Create Advertisement view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting list for Advertisement.
|
||||
```
|
||||
|
||||
**POST**
|
||||
```
|
||||
Implement creating for Advertisement.
|
||||
```
|
||||
"""
|
||||
|
||||
serializer_class = AdvertisementBaseSerializer
|
||||
|
||||
|
||||
class AdvertisementRUDView(AdvertisementBackOfficeViewMixin,
|
||||
generics.RetrieveUpdateDestroyAPIView):
|
||||
"""Retrieve|Update|Destroy advertisement page view."""
|
||||
"""
|
||||
Retrieve/Update/Destroy Advertisement page view.
|
||||
|
||||
**GET**
|
||||
```
|
||||
Implement getting Advertisement object.
|
||||
```
|
||||
|
||||
**PUT**
|
||||
```
|
||||
Implement updating Advertisement.
|
||||
```
|
||||
|
||||
**PATCH**
|
||||
```
|
||||
Implement partial updating Advertisement.
|
||||
```
|
||||
|
||||
**DELETE**
|
||||
```
|
||||
Implement deleting Advertisement.
|
||||
```
|
||||
"""
|
||||
|
||||
serializer_class = AdvertisementDetailSerializer
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user