diff --git a/src/Bundle/ChillMainBundle/Serializer/Normalizer/GenderDocGenNormalizer.php b/src/Bundle/ChillMainBundle/Serializer/Normalizer/GenderDocGenNormalizer.php index f7dd84dfc..7361c7b96 100644 --- a/src/Bundle/ChillMainBundle/Serializer/Normalizer/GenderDocGenNormalizer.php +++ b/src/Bundle/ChillMainBundle/Serializer/Normalizer/GenderDocGenNormalizer.php @@ -34,6 +34,7 @@ class GenderDocGenNormalizer implements ContextAwareNormalizerInterface, Normali 'id' => $gender->getId(), 'label' => $this->translatableStringHelper->localize($gender->getLabel()), 'genderTranslation' => $gender->getGenderTranslation(), + 'type' => 'chill_main_gender' ]; } } diff --git a/src/Bundle/ChillMainBundle/chill.api.specs.yaml b/src/Bundle/ChillMainBundle/chill.api.specs.yaml index 6236ba206..8d204803f 100644 --- a/src/Bundle/ChillMainBundle/chill.api.specs.yaml +++ b/src/Bundle/ChillMainBundle/chill.api.specs.yaml @@ -943,6 +943,16 @@ paths: description: "ok" 401: description: "Unauthorized" + /1.0/main/gender.json: + get: + tags: + - gender + summary: Return all gender types + responses: + 200: + description: "ok" + 401: + description: "Unauthorized" /1.0/main/user-job.json: get: tags: