Coverage for apis_core/apis_metainfo/serializers.py: 0%
8 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-22 07:51 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-22 07:51 +0000
1from rest_framework import serializers
3from apis_core.generic.serializers import GenericHyperlinkedModelSerializer
5from .models import Uri
8class UriSerializer(GenericHyperlinkedModelSerializer):
9 url = serializers.HyperlinkedIdentityField(
10 view_name="apis_core:apis_api:uri-detail", lookup_field="pk"
11 )
13 class Meta:
14 fields = "__all__"
15 model = Uri