PHP Class RestBundle\Controller\RestController

Author: Alfonso M. García Astorga ([email protected])
Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Mostra file Open project: alfonsomga/symfony.demo.on.roids

Public Methods

Method Description
deleteCommentAction ( integer $id ) : FOS\RestBundle\View\View Removes a comment.
deletePostAction ( integer $id ) : FOS\RestBundle\View\View Removes a post.
editCommentAction ( Request $request, Request $id ) : FOS\RestBundle\View\View | Response Partial update of an existing Comment.
editCommentFormAction ( $id ) : FOS\RestBundle\View\View Presents the form for partial update of an existing Comment.
editPostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View Partial update of an existing Post.
editPostFormAction ( $id ) : FOS\RestBundle\View\View Presents the form for partial update of an existing Post.
getCommentAction ( integer $id ) : FOS\RestBundle\View\View Get a specific comment.
getCommentsAction ( ) : FOS\RestBundle\View\View List all comments.
getCommentsFromPostAction ( integer $id ) : FOS\RestBundle\View\View List all comments from a post.
getPostAction ( integer $id ) : FOS\RestBundle\View\View Get a specific post.
getPostsAction ( ) : FOS\RestBundle\View\View List all posts.
indexApiAction ( ) : FOS\RestBundle\View\View List all resources available.
newCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View Creates a new comment from the submitted data.
newCommentFormAction ( ) : Form Presents the form to use to create a new comment.
newPostAction ( Request $request ) : FOS\RestBundle\View\View Creates a new post from the submitted data.
newPostFormAction ( ) : Form Presents the form to use to create a new post.
updateCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View | Response Update existing comment from the submitted data or create a new comment at a specific location.
updatePostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View Update existing post from the submitted data or create a new post at a specific location.

Method Details

deleteCommentAction() public method

Removes a comment.
public deleteCommentAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
return FOS\RestBundle\View\View

deletePostAction() public method

Removes a post.
public deletePostAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
return FOS\RestBundle\View\View

editCommentAction() public method

Partial update of an existing Comment.
public editCommentAction ( Request $request, Request $id ) : FOS\RestBundle\View\View | Response
$request Symfony\Component\HttpFoundation\Request
$id Symfony\Component\HttpFoundation\Request
return FOS\RestBundle\View\View | Symfony\Component\HttpFoundation\Response

editCommentFormAction() public method

Presents the form for partial update of an existing Comment.
public editCommentFormAction ( $id ) : FOS\RestBundle\View\View
$id
return FOS\RestBundle\View\View

editPostAction() public method

Partial update of an existing Post.
public editPostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
$id integer
return FOS\RestBundle\View\View

editPostFormAction() public method

Presents the form for partial update of an existing Post.
public editPostFormAction ( $id ) : FOS\RestBundle\View\View
$id
return FOS\RestBundle\View\View

getCommentAction() public method

Get a specific comment.
public getCommentAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
return FOS\RestBundle\View\View

getCommentsAction() public method

List all comments.
public getCommentsAction ( ) : FOS\RestBundle\View\View
return FOS\RestBundle\View\View

getCommentsFromPostAction() public method

List all comments from a post.
public getCommentsFromPostAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
return FOS\RestBundle\View\View

getPostAction() public method

Get a specific post.
public getPostAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
return FOS\RestBundle\View\View

getPostsAction() public method

List all posts.
public getPostsAction ( ) : FOS\RestBundle\View\View
return FOS\RestBundle\View\View

indexApiAction() public method

List all resources available.
public indexApiAction ( ) : FOS\RestBundle\View\View
return FOS\RestBundle\View\View

newCommentAction() public method

Creates a new comment from the submitted data.
public newCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
$id integer
return FOS\RestBundle\View\View

newCommentFormAction() public method

Presents the form to use to create a new comment.
public newCommentFormAction ( ) : Form
return Symfony\Component\Form\Form

newPostAction() public method

Creates a new post from the submitted data.
public newPostAction ( Request $request ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
return FOS\RestBundle\View\View

newPostFormAction() public method

Presents the form to use to create a new post.
public newPostFormAction ( ) : Form
return Symfony\Component\Form\Form

updateCommentAction() public method

Update existing comment from the submitted data or create a new comment at a specific location.
public updateCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View | Response
$request Symfony\Component\HttpFoundation\Request
$id integer
return FOS\RestBundle\View\View | Symfony\Component\HttpFoundation\Response

updatePostAction() public method

Update existing post from the submitted data or create a new post at a specific location.
public updatePostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
$id integer
return FOS\RestBundle\View\View