aboutsummaryrefslogtreecommitdiffstats
path: root/api/viewsets.py
diff options
context:
space:
mode:
authorGravatar Hasan-Ahmad <[email protected]>2018-10-20 20:09:22 +0100
committerGravatar Hasan-Ahmad <[email protected]>2018-10-20 20:09:22 +0100
commit6b8022b0cbc56fa4137666c3c7a2e488df927e56 (patch)
treecea1a68c258ce447c71181cf4e5ecbed6aba8216 /api/viewsets.py
parentmerge conflict thing (diff)
ficksed gramar and kept imports 2 per line
Diffstat (limited to 'api/viewsets.py')
-rw-r--r--api/viewsets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/viewsets.py b/api/viewsets.py
index e633c8b7..eef0daa0 100644
--- a/api/viewsets.py
+++ b/api/viewsets.py
@@ -182,7 +182,7 @@ class SnakeFactViewSet(ListModelMixin, GenericViewSet):
## Routes
### GET /bot/snake-facts
- Returns a snake fact in the database.
+ Returns snake facts from the database.
#### Response format
>>> [
@@ -203,11 +203,11 @@ class SnakeFactViewSet(ListModelMixin, GenericViewSet):
class SnakeIdiomViewSet(ListModelMixin, GenericViewSet):
"""
- View providing snake idioms for the snake cog.
+ View providing for the snake cog.
## Routes
### GET /bot/snake-idioms
- Returns a snake idiom in the database.
+ Returns snake idioms from the database.
#### Response format
>>> [
@@ -217,7 +217,7 @@ class SnakeIdiomViewSet(ListModelMixin, GenericViewSet):
#### Status codes
- 200: returned on success
## Authentication
- Requires and API token
+ Requires an API token
"""
serializer_class = SnakeIdiomSerializer