-
Notifications
You must be signed in to change notification settings - Fork 3
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
IBX-8173: Implemented routing language expression parsing media type from Content-Type
header
#100
IBX-8173: Implemented routing language expression parsing media type from Content-Type
header
#100
Conversation
src/bundle/Routing/ExpressionLanguage/ContentTypeHeaderMatcherFactory.php
Outdated
Show resolved
Hide resolved
tests/bundle/Routing/ExpressionLanguage/ContentTypeHeaderMatcherFactoryTest.php
Outdated
Show resolved
Hide resolved
tests/bundle/Routing/ExpressionLanguage/ContentTypeHeaderMatcherFactoryTest.php
Outdated
Show resolved
Hide resolved
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.
Nice work @barw4! 👏
src/bundle/Routing/ExpressionLanguage/ContentTypeHeaderMatcherFactory.php
Outdated
Show resolved
Hide resolved
Content-Type
headerContent-Type
header
Content-Type
headerContent-Type
header with copy content type endpoint
2a8c066
to
49034f7
Compare
Content-Type
header with copy content type endpointContent-Type
header
src/bundle/Routing/ExpressionLanguage/ContentTypeHeaderMatcherFactory.php
Outdated
Show resolved
Hide resolved
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.
This is how you can make you service "callable" during routing 👇
src/bundle/Routing/ExpressionLanguage/ContentTypeHeaderMatcherFactory.php
Outdated
Show resolved
Hide resolved
76fab36
to
12905f3
Compare
cf6a637
to
4da63c8
Compare
4da63c8
to
8692557
Compare
Quality Gate passedIssues Measures |
Description:
As agreed internally to avoid methods' duplication a new routing expression language function was implemented that allows parsing media type value from the
Content-Type
header.Usage:
Additionally, it was used to make copy content type endpoint OpenAPI compatible.