Skip to content
#

django-rest-framework

Here are 7,494 public repositories matching this topic...

webjunkie
webjunkie commented Aug 24, 2018

I'm using https://github.com/Artory/drf-hal-json/ that basically provides custom base serializers that add dynamically fields like _links into the response via the to_representation method.

I tried to somehow get that into the schema as well, but I'm getting stuck. Are there any directions on what I need to provide/subclass/overwrite, so to make it work?

I imagine I could inspect my seri

masda70
masda70 commented Dec 12, 2020

On v4.0.0, inflection is not performed by the AutoPrefetchMixin for included resources, contrary to the JSONRenderer.

Suppose the following data model, serializers and viewsets:

from django.db import models
from rest_framework import viewsets, mixins
from rest_framework_json_api import views, serializers

class Album(models.Model):
    title = models.TextField()

class Track(mod

Improve this page

Add a description, image, and links to the django-rest-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the django-rest-framework topic, visit your repo's landing page and select "manage topics."

Learn more