django-rest-framework-docs
django-rest-framework-docs copied to clipboard
Document Web APIs made with Django Rest Framework
I found way to extend field information for at least: default, max length, min length with potential display it as table instead list - that could be configurable. Could you...
I've implemented something like this on my fork ``` from my_serializers import PasswordSerializer from rest_framework_docs.utils import func_serializer class UserViewSet(viewsets.ViewSet): @func_serializer(serializer_class=PasswordSerializer) @detail_route(methods=['post']) def set_password(self, request, pk=None): serializer = PasswordSerializer(data=request.data) ``` I...
Hi, Sorry I promise this is my last question today. Why did you decide to hide the fields for GET request?
After installing `drfdocs` there are unused directories in `site-packages`, such as `site` and `tests`. In `setup.py` file param `packages` should contain only `"rest_framework_docs"` entry, something like this: ``` ... packages=['rest_framework_docs',...
In case someone is using subdomains and his api endpoints are in a separate urls.py file (ex.: api_urls.py) its unable to find the routes. IMHO it would be great to...
I am testing the Live API endpoints feature of drf-docs. The server is running on localhost. Get request is sent successfully as I can verify it from the running server's...
Hi there, Great tool! Are there any plans to support nested serializers? Like say: ``` python class FooSerializer(serializers.Serializer): spam = serializers.CharField() class BarSerializer(serializers.Serializer): foo = FooSerializer() ``` The endpoint for...
Just a quick note to mention that I've started working on built-in schema support in REST framework 3.4. Pull request: https://github.com/tomchristie/django-rest-framework/pull/4179 Upcoming new tutorial section: https://github.com/tomchristie/django-rest-framework/blob/schema-support/docs/tutorial/7-schemas-and-client-libraries.md I think the client...
Currently param fields are not being populated and remain as null.
Hi, Could you have a look at the below changes, please? I needed to exclude specific APIViews from the endpoints list. I did this by adding a new property to...