-
Notifications
You must be signed in to change notification settings - Fork 32
[WIP] first steps to an RESTController by the help of sylius resource-bundle #144
Conversation
What advantages would this offer over the Resource[Rest]Bundle? |
Sorry @dantleech I forgot to add the related Issue #93 But you are right in the point that we should put equal functions into one Place. So one toolset and both endpoints in two different places. I think i will see the common function when having implemented both, caus i started working on symfony-cmf/resource-rest-bundle#6 too And you right again. I procastinate the writing of an "CMF - REST - the big picture " gist/post/idea since weeks. |
cmf_rest: | ||
dynamic: | ||
enabled: true | ||
crud_controller_by_method: cmf_content.rest_controller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is my own little enhancer in my restbundle-try-and-fail-sandbox. It will be removed, when routing is ready to do the job.
"symfony/monolog-bundle": "^2.3", | ||
"friendsofsymfony/rest-bundle": "^1.7", | ||
"jms/serializer-bundle": "^0.13|^1.0", | ||
"electricmaxxx/rest-bundle":"dev-master" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be removed, when routing is ready to do its job.
@@ -0,0 +1,4 @@ | |||
cmf_static_content_index: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created for the redirect defintion after delete only. Should be done in a kind of an route enhancer to pass the information by class.
/** | ||
* @author Maximilian Berghoff <[email protected]> | ||
*/ | ||
class RESTContentControllerTest extends BaseTestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RestContent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently not sure if i should switch to behat tests as you did on resource-rest-bundle. So maybe that test will disappear.
i will maybe keep track localy, or replace it by api-plattform |
This is a realy early WIP PR for the REST support of content bundle.
Todo's: