-
Notifications
You must be signed in to change notification settings - Fork 351
Migrate rest routings to default symfony routing files of TagBundle #7511
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
Migrate rest routings to default symfony routing files of TagBundle #7511
Conversation
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.
Some minor things.
path: /tags/{id}.{_format} | ||
controller: sulu_tag.tag_controller::getAction | ||
methods: GET | ||
format: json |
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.
I don't know what this format
key is supposed to do. If you want to specify what values it can have it should be something like
sulu_tag.get_tag:
requirements: { _format: json|csv }
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.
format does the same as options: _format so its obsolete if already defined in options
Co-authored-by: mamazu <14860264+mamazu@users.noreply.github.com>
26efed5
to
bf8aeaa
Compare
requirements: | ||
_format: json|csv |
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 was missing as it was currently handled by type: rest
but that should be removed.
What's in this PR?
See ticket # 7434
All Routes that are needed