Source code for apis_core.apis_metainfo.serializers

from rest_framework import serializers

from apis_core.generic.serializers import GenericHyperlinkedModelSerializer

from .models import Uri


[docs] class UriSerializer(GenericHyperlinkedModelSerializer): url = serializers.HyperlinkedIdentityField( view_name="apis_core:apis_api:uri-detail", lookup_field="pk" )
[docs] class Meta: fields = "__all__" model = Uri