Source code for pki.serializer.cert_profile
"""Serializers for Certificate Profile-related API endpoints.
Defines classes that handle validation and transformation
of Certificate profile model instances to and from JSON.
"""
from typing import ClassVar
from rest_framework import serializers
from pki.models.cert_profile import CertificateProfileModel
[docs]
class CertProfileSerializer(serializers.ModelSerializer[CertificateProfileModel]):
"""Serializer for Certificate profile instances.
Handles conversion between Certificate Profile model objects and JSON representations.
"""