Skip to content

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

Merged

Conversation

TheCadien
Copy link
Member

@TheCadien TheCadien commented Jul 7, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes # 7434
Related issues/PRs # 7434
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

See ticket # 7434

All Routes that are needed

  • sulu_tag.get_tag GET ANY ANY /admin/api/tags/{id}.{_format}
  • sulu_tag.get_tags GET ANY ANY /admin/api/tags.{_format}
  • sulu_tag.post_tag POST ANY ANY /admin/api/tags.{_format}
  • sulu_tag.put_tag PUT ANY ANY /admin/api/tags/{id}.{_format}
  • sulu_tag.delete_tag DELETE ANY ANY /admin/api/tags/{id}.{_format}
  • sulu_tag.patch_tags PATCH ANY ANY /admin/api/tags.{_format}
  • sulu_tag.post_tag_merge POST ANY ANY /admin/api/tags/merge.{_format}

@TheCadien TheCadien added the DX Affecting the end developer label Jul 7, 2024
Copy link
Contributor

@mamazu mamazu left a 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
Copy link
Contributor

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 }

Copy link
Member

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

@alexander-schranz alexander-schranz force-pushed the migrate-rest-routings-tag-bundle branch from 26efed5 to bf8aeaa Compare June 7, 2025 15:50
Comment on lines +6 to +7
requirements:
_format: json|csv
Copy link
Member

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.

@alexander-schranz alexander-schranz merged commit ff26460 into sulu:2.6 Jun 7, 2025
9 checks passed
@alexander-schranz alexander-schranz added the Technical Debt Impacts code quality, no or just small impact on end developers and users label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer Technical Debt Impacts code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants