Skip to content

Commit

Permalink
commenting out the new thing, so the check works
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel committed Jan 21, 2025
1 parent 8fcd402 commit 37c2084
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
5 changes: 3 additions & 2 deletions sandbox/urls.py
Original file line number Diff line number Diff line change
@@ -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()

Expand All @@ -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),
]
26 changes: 14 additions & 12 deletions sandbox/views.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()

0 comments on commit 37c2084

Please sign in to comment.