Resolve "Refactor mutations endpoints"

This commit is contained in:
Georg Krause 2022-10-08 17:55:09 +00:00
parent 6a51b8f109
commit ff1a614861
3 changed files with 4 additions and 3 deletions

View File

@ -53,9 +53,6 @@ def custom_preprocessing_hook(endpoints):
if path.startswith("/api/v1/users/users"):
continue
if path.startswith("/api/v1/mutations"):
continue
if path.startswith(f"/api/{api_type}"):
filtered.append((path, path_regex, method, callback))

View File

@ -1,6 +1,8 @@
from django import forms
from django.db.models import Q
from drf_spectacular.utils import extend_schema_field
from django_filters import widgets
from django_filters import rest_framework as filters
@ -52,6 +54,7 @@ class CoerceChoiceField(forms.ChoiceField):
raise forms.ValidationError("Invalid value {}".format(value))
@extend_schema_field(bool)
class NullBooleanFilter(filters.ChoiceFilter):
field_class = CoerceChoiceField

View File

@ -0,0 +1 @@
Make mutations endpoint appear in openapi specs