Import the bundle routing:
fos_comment_api:
type: rest
resource: "@FOSCommentBundle/Resources/config/routing.yml"
prefix: /api
defaults: { _format: html }
Note:
The
type: rest
part is important.
Note:
The defaults configuration may not be necessary unless you have changed FOSRestBundle's default format.
When you're done. Continue with the final step: enabling the comments on a page: Step 4: Enable comments on a page.