diff --git a/evennia/web/api/views.py b/evennia/web/api/views.py index 51de2f0321..67524d525c 100644 --- a/evennia/web/api/views.py +++ b/evennia/web/api/views.py @@ -58,7 +58,7 @@ class TypeclassViewSetMixin(GeneralViewSetMixin): # for example: mygame.com/api/objects?db_key=bob to find matches based on objects having a db_key of bob filter_backends = [DjangoFilterBackend] - @action(detail=True, methods=["put", "post"]) + @action(detail=True, methods=["put"]) def set_attribute(self, request, pk=None): """ This action will set an attribute if the db_value is defined, or remove diff --git a/evennia/web/templates/rest_framework/redoc.html b/evennia/web/templates/rest_framework/redoc.html index f2422cdf54..1566b88d58 100644 --- a/evennia/web/templates/rest_framework/redoc.html +++ b/evennia/web/templates/rest_framework/redoc.html @@ -15,6 +15,7 @@ - + + {% endblock %}