Skip to content

Improve Xml- and JsonSerializer #315

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
merged 15 commits into from
Mar 15, 2022
Merged

Conversation

Art4
Copy link
Collaborator

@Art4 Art4 commented Mar 14, 2022

This PR improves the JsonSerializer and XmlSerializer introduced in #310. The serializers have been extended to encode JSON or XML from an array for a request body. The methods Redmine\Api\AbstractApi::attachCustomFieldXML() and Redmine\Api\Project::prepareParamsXml() that generated XML are thus deprecated.

The next step is to replace the get(), post(), put() and delete() methods in AbstractApi by using only the serializer and Client classes in the API classes. This will then be the final preparation to be able to dynamically switch the format in the request/response between XML and JSON, see #146.

@Art4 Art4 requested a review from kbsali March 14, 2022 10:28
Copy link
Owner

@kbsali kbsali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 🎉 awesome!

@Art4 Art4 merged commit 6310ff2 into kbsali:v2.x Mar 15, 2022
@Art4 Art4 deleted the improve-xml-serializer branch September 20, 2023 13:31
@Art4 Art4 added this to the v2.3.0 milestone Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants