aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/viewsets
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-12-14 11:46:37 +0100
committerGravatar Akarys42 <[email protected]>2019-12-14 11:46:37 +0100
commitf3653925b8ddd4ce5d1c81cd9b1dd94cb0b36b53 (patch)
tree81d60b77bdca810b4e858f7dc0900c22c1f3ea95 /pydis_site/apps/api/viewsets
parentUse direct database test intead of relying on GET (diff)
Rename route /bot/offensive-message to /bot/offensive-messages
Diffstat (limited to 'pydis_site/apps/api/viewsets')
-rw-r--r--pydis_site/apps/api/viewsets/bot/offensive_message.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/offensive_message.py b/pydis_site/apps/api/viewsets/bot/offensive_message.py
index f25c14b4..54cb3a38 100644
--- a/pydis_site/apps/api/viewsets/bot/offensive_message.py
+++ b/pydis_site/apps/api/viewsets/bot/offensive_message.py
@@ -16,7 +16,7 @@ class OffensiveMessageViewSet(
View providing CRUD access to offensive messages.
## Routes
- ### GET /bot/offensive-message
+ ### GET /bot/offensive-messages
Returns all offensive messages in the database.
#### Response format
@@ -32,7 +32,7 @@ class OffensiveMessageViewSet(
#### Status codes
- 200: returned on success
- ### POST /bot/offensive-message
+ ### POST /bot/offensive-messages
Create a new offensive message object.
#### Request body
@@ -46,7 +46,7 @@ class OffensiveMessageViewSet(
- 201: returned on success
- 400: if the body format is invalid
- ### DELETE /bot/offensive-message/<id:int>
+ ### DELETE /bot/offensive-messages/<id:int>
Delete the offensive message object with the given `id`.
#### Status codes