pki.serializer.certificate ========================== .. py:module:: pki.serializer.certificate .. autoapi-nested-parse:: Serializers for Certificate-related API endpoints. Defines classes that handle validation and transformation of Certificate model instances to and from JSON. Module Contents --------------- .. py:class:: CertificateSerializer(instance=None, data=empty, **kwargs) Bases: :py:obj:`rest_framework.serializers.ModelSerializer`\ [\ :py:obj:`pki.models.certificate.CertificateModel`\ ] Serializer for Certificate instances. Handles conversion between Certificate model objects and JSON representations. .. py:class:: Meta Metadata for CertificateSerializer, defining model and serialized fields. .. py:attribute:: model .. py:attribute:: fields :type: ClassVar[list[str]] :value: ['id', 'common_name'] .. py:attribute:: read_only_fields :type: ClassVar[list[str]] :value: ['id']