Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道在 REST api 中发布/放置/修补实体或实体集合并使用 Symfony2 的最佳方法是什么。
我希望能够接受 json(可能还有 xml)作为输入请求,我知道使用 Form 已经可以做到这一点,但我不确定这是否可行。
有什么建议吗?
是的,使用表格似乎是最好的解决方案。这就是表格的用途。
查看FOSRestBundle,它会为您节省一些时间。