diff --git a/sandbox/urls.py b/sandbox/urls.py index 6a3ea150..30b126ed 100644 --- a/sandbox/urls.py +++ b/sandbox/urls.py @@ -1,9 +1,10 @@ +# ruff: noqa: ERA001 """Routes for the sandbox app.""" from django.urls import include, re_path from rest_framework import routers -from sandbox.views import SandboxViewSet, return_nothing +from sandbox.views import SandboxViewSet v0_router = routers.DefaultRouter() @@ -16,5 +17,5 @@ app_name = "v0" urlpatterns = [ re_path("^api/v0/", include((v0_router.urls, "v0"))), - re_path("^api/v0/sandbox/return_nothing", return_nothing), + # re_path("^api/v0/sandbox/return_nothing", return_nothing), ] diff --git a/sandbox/views.py b/sandbox/views.py index 5b9247d9..ac0e81ff 100644 --- a/sandbox/views.py +++ b/sandbox/views.py @@ -1,9 +1,9 @@ +# ruff: noqa: ERA001 """Views for the sandbox app.""" from drf_spectacular.openapi import OpenApiParameter, OpenApiTypes from drf_spectacular.utils import extend_schema, inline_serializer from rest_framework import status -from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.serializers import CharField, IntegerField from rest_framework.viewsets import ViewSet @@ -73,15 +73,17 @@ def retrieve(self, request, id: int): # noqa: A002, ARG002 return Response(item) -@extend_schema( - description=("Retrieves the list of sandbox values."), - methods=["GET"], - request=None, - responses=SANDBOX_SERIALIZER, - operation_id="sandbox_zen_api_list", -) -@api_view(["GET"]) -def return_nothing(request): # noqa: ARG001 - """Return nothing.""" +# Uncomment this stuff to test! + +# @extend_schema( +# description=("Retrieves the list of sandbox values."), +# methods=["GET"], +# request=None, +# responses=SANDBOX_SERIALIZER, +# operation_id="sandbox_zen_api_list", +# ) +# @api_view(["GET"]) +# def return_nothing(request): +# """Return nothing.""" - return Response() +# return Response()