diff --git a/website/partners/api/v2/serializers/vacancy.py b/website/partners/api/v2/serializers/vacancy.py index f6c4df1f7..f07cfd0ce 100644 --- a/website/partners/api/v2/serializers/vacancy.py +++ b/website/partners/api/v2/serializers/vacancy.py @@ -1,7 +1,10 @@ +from rest_framework import serializers + from partners.models import Vacancy from thaliawebsite.api.v2.serializers.cleaned_model_serializer import ( CleanedModelSerializer, ) +from thaliawebsite.api.v2.serializers.thumbnail import ThumbnailSerializer from .vacancy_category import VacancyCategorySerializer @@ -26,4 +29,10 @@ class Meta: "categories", ) + company_name = serializers.CharField(source="get_company_name", read_only=True) + company_logo = serializers.SerializerMethodField("_company_logo") + + def _company_logo(self, instance): + return ThumbnailSerializer().to_representation(instance.get_company_logo()) + categories = VacancyCategorySerializer(many=True) diff --git a/website/thaliawebsite/api/zipper/urls.py b/website/thaliawebsite/api/zipper/urls.py new file mode 100644 index 000000000..e69de29bb