creation of API endpoint thirdparty

This commit is contained in:
2021-09-01 17:34:30 +02:00
parent 9961c38b3c
commit 19a4542e2b
4 changed files with 17 additions and 4 deletions

View File

@@ -21,6 +21,8 @@ class ThirdPartyNormalizer implements NormalizerInterface, NormalizerAwareInterf
$data['id'] = $thirdParty->getId();
$data['address'] = $this->normalizer->normalize($thirdParty->getAddress(), $format,
[ 'address_rendering' => 'short' ]);
$data['phonenumber'] = $thirdParty->getTelephone();
$data['email'] = $thirdParty->getEmail();
return $data;
}