aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/apps/api/viewsets.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-05 12:11:31 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-05 12:11:31 +0100
commitebda74029355ce3236ca9266acde40fd40329df7 (patch)
treeaba491f902c874328c88b8e7ccb9772b5414c17f /pysite/apps/api/viewsets.py
parentSet `harakiri = 30`. (diff)
[#176] Redo project layout
Diffstat (limited to '')
-rw-r--r--pysite/apps/api/viewsets.py (renamed from api/viewsets.py)8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/viewsets.py b/pysite/apps/api/viewsets.py
index 17024fe8..0bd6149f 100644
--- a/api/viewsets.py
+++ b/pysite/apps/api/viewsets.py
@@ -54,7 +54,7 @@ class DeletedMessageViewSet(CreateModelMixin, GenericViewSet):
#### Body schema
>>> {
... # The member ID of the original actor, if applicable.
- ... # If a member ID is given, it must be present on the site.
+ ... # If a member ID is given, it must be present on the pysite.
... 'actor': Optional[int]
... 'creation': datetime,
... 'messages': [
@@ -192,7 +192,7 @@ class InfractionViewSet(CreateModelMixin, RetrieveModelMixin, ListModelMixin, Ge
### POST /bot/infractions
Create a new infraction and return the created infraction.
Only `actor`, `type`, and `user` are required.
- The `actor` and `user` must be users known by the site.
+ The `actor` and `user` must be users known by the pysite.
#### Request body
>>> {
@@ -427,7 +427,7 @@ class ReminderViewSet(CreateModelMixin, ListModelMixin, DestroyModelMixin, Gener
class RoleViewSet(ModelViewSet):
"""
View providing CRUD access to the roles on our server, used
- by the bot to keep a mirror of our server's roles on the site.
+ by the bot to keep a mirror of our server's roles on the pysite.
## Routes
### GET /bot/roles
@@ -802,7 +802,7 @@ class UserViewSet(BulkCreateModelMixin, ModelViewSet):
### POST /bot/users
Adds a single or multiple new users.
- The roles attached to the user(s) must be roles known by the site.
+ The roles attached to the user(s) must be roles known by the pysite.
#### Request body
>>> {