Content REST

5 views
Skip to first unread message

Maximilian Berghoff

unread,
May 29, 2016, 7:37:51 PM5/29/16
to symfony-cmf-devs
Acording to Dan's "Resource REST" i whant to open the discussion for the content version of a REST API.

I started a WIP on content-bundle (https://github.com/symfony-cmf/content-bundle/pull/144) to give that bundle a write, create and delete support for content. The Main difference to the Resource API is the the endpoint has nothing to do with the path of the content document in the phpcr-odm. The Route of the content is the endpoint. That means when a content is available under /services/legals we do currently GET the content in HTML, JSON and -XML. The WIP PR adds PUT/DELETE/POST Support by the help of sylius/ResourceBundle. Problems with that bundle:
- several configuration on the route itself. So when still whant to use our Dynamic Routing we have to set them automatic. Maybe in an enhancer.
- do not See any Chance to customize the Status Codes on response. I.e. 200. -> 201
- imposible Mission to use Dan's branch of his fork of a Molythin Repo.
- Accepted Type for the Format isn't recognized

An other Open Point is the method aware Routing. Currently an own enhancer simply Matches on request method to the Action of the ResourceContee
R. For the Future David an I are working on that theme in our Routing.

At the end of the day we need some configuration only to get the REST Support. That would be awesome.

Max.

Reply all
Reply to author
Forward
0 new messages