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

1from rest_framework import serializers 

2 

3from apis_core.generic.serializers import GenericHyperlinkedModelSerializer 

4 

5from .models import Uri 

6 

7 

8class UriSerializer(GenericHyperlinkedModelSerializer): 

9 url = serializers.HyperlinkedIdentityField( 

10 view_name="apis_core:apis_api:uri-detail", lookup_field="pk" 

11 ) 

12 

13 class Meta: 

14 fields = "__all__" 

15 model = Uri