For pomm, I pushed a new api-platform branch in the symfony bridge and in the bundle.
Today, I created the extractor for sf/PropertyInfo component and test the serialization with a simple entity. We probably have enough to start work in the api bundle.
Great, thank you @sanpii. I'll have a look to create the data provider asap.
Complex type serialization seems working fine: https://github.com/pomm-project/pomm-bundle/blob/api-platform/tests/tests/Features/serializer.feature
Great! I take care of the migration to of master to the Symfony PropertyInfo Component.
Would be nice to have Pomm support in 2.1!
@sanpii @dunglas Can we do something on our end to do this ?
Do you want some help for doing this ?
@Simperfit for the pomm bundle, all stuff is ready to merge and planned for the next minor version.
I probably will merge tomorrow.
Merged.
Some good news: the new version of pomm bundle, with the PropertyInfo list extractor, is on the road (first RC today).
I implemented the write event listener, but I don鈥檛 understand how can I get the data. Currently I use $request->getContent(): https://github.com/sanpii/api-platform-core/blob/pomm/src/Bridge/Pomm/WriteListener.php#L39
Some test about what the pomm bridge can do: https://github.com/sanpii/api-platform-pomm-test/blob/master/tests/Features/pomm.feature
Great to hear!
About the event listener, I don't get why you need those lines: https://github.com/sanpii/api-platform-core/blob/pomm/src/Bridge/Pomm/WriteListener.php#L39-L40
At this point, the Symfony Serializer (in DeserializeListener) will already have updated the entity (https://github.com/api-platform/core/blob/master/src/EventListener/DeserializeListener.php#L66-L68).
I don't get why you need those lines
Because the entity is empty. It鈥檚 probably a problem with the desezializer.
Indeed, looks like it fails to use the Pomm to PropertyInfo Bridge.
Ok, that works fine with a denormalizer for the pomm entities.
But in exchange, I lose the hydra metadata: https://github.com/sanpii/api-platform-pomm-test/blob/master/tests/Features/pomm.feature#L130-L134
Well, the deserializer is now in the pomm bundle master.
I also extract my core modifications in a new bundle: https://github.com/sanpii/pomm-api-platform
Great! I switched to application/json format for the tests and all work as I expect 馃槂
My work is almost done, I鈥檒l see with @chanmix51 to migrate this repository to pomm-project organisation, but now I waiting for feedbacks.
What's the status on this?
I think we can consider it done in the bundle (https://github.com/pomm-project/pomm-api-platform). Thank you @sanpii!
However, it needs to be documented and referenced. I've created the issue in the docs: https://github.com/api-platform/docs/issues/932
Most helpful comment
Would be nice to have Pomm support in 2.1!