New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API] Use serializer instead of custom view for shipping methods #12713
[API] Use serializer instead of custom view for shipping methods #12713
Conversation
GSadee
commented
Jun 17, 2021
•
edited
edited
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | replaces #12392 |
License | MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of code removed is always nice to see 🚀
6a13d90
to
9df6d86
Compare
… getting shipping methods
4e13ab0
to
e914795
Compare
src/Sylius/Bundle/ApiBundle/Resources/config/api_resources/ShippingMethod.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Swagger/ShippingMethodDocumentationNormalizer.php
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Swagger/ShippingMethodDocumentationNormalizer.php
Outdated
Show resolved
Hide resolved
Thank you, Grzegorz! 🎉 |
…shipping methods endpoint (GSadee) This PR was merged into the 1.11-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | based on #12713 | License | MIT Commits ------- 175ca05 [API] Change names of API contract tests dedad00 [API][ShippingMethod] Add contract test for available shipping methods endpoint
/** @experimental */ | ||
final class ShippingMethodNormalizer implements ContextAwareNormalizerInterface, NormalizerAwareInterface | ||
{ | ||
use NormalizerAwareTrait; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC this trait makes it harder to decorate service in the end app. Do you think we could use regular DI for normalization logic?