class BlogPostJSONController extends Controller

Class BlogPostJSONController. Defines API routes for blog post

Methods

JsonResponse
saveBlogPostAction(ArrayCollection $blogAddPost)

API route for creating new blog post

JsonResponse
editBlogPostAction(ArrayCollection $blogPostEditJSON)

API route for editing blog post

JsonResponse
viewAllBlogCategoryJSONAction(ArrayCollection $blogPostViewAllJSON)

API route for loading all blog posts

JsonResponse
deleteBlogPostAction(ArrayCollection $blogPostsDeleteJSON)

API route for deleting blog posts by provided array of ids

JsonResponse
viewAllBlogPostJSONPaginationAction(ArrayCollection $blogPostViewAllPaginationJSON)

API route for rendering blog posts with pagination

JsonResponse
viewAllBlogPostByCategoryJSONPaginationAction(ArrayCollection $blogPostViewAllByCatPaginationJSON)

API route for rendering blog posts with pagination for specific blog category

Response
blogCategoryIsotopeJSONPaginationAction(ArrayCollection $blogPostIsotopeJSON)

API route for rendering all blog posts for provided blog category parent id

Details

at line 42
JsonResponse saveBlogPostAction(ArrayCollection $blogAddPost)

API route for creating new blog post

Parameters

ArrayCollection $blogAddPost

Return Value

JsonResponse

See also

BlogAddPostConverter

at line 57
JsonResponse editBlogPostAction(ArrayCollection $blogPostEditJSON)

API route for editing blog post

Parameters

ArrayCollection $blogPostEditJSON

Return Value

JsonResponse

See also

BlogPostEditJSONConverter

at line 72
JsonResponse viewAllBlogCategoryJSONAction(ArrayCollection $blogPostViewAllJSON)

API route for loading all blog posts

Parameters

ArrayCollection $blogPostViewAllJSON

Return Value

JsonResponse

See also

BlogPostViewAllJSONConverter

at line 87
JsonResponse deleteBlogPostAction(ArrayCollection $blogPostsDeleteJSON)

API route for deleting blog posts by provided array of ids

Parameters

ArrayCollection $blogPostsDeleteJSON

Return Value

JsonResponse

See also

BlogPostsDeleteJSONConverter

at line 102
JsonResponse viewAllBlogPostJSONPaginationAction(ArrayCollection $blogPostViewAllPaginationJSON)

API route for rendering blog posts with pagination

Parameters

ArrayCollection $blogPostViewAllPaginationJSON

Return Value

JsonResponse

See also

BlogPostViewAllPaginationJSONConverter

at line 130
JsonResponse viewAllBlogPostByCategoryJSONPaginationAction(ArrayCollection $blogPostViewAllByCatPaginationJSON)

API route for rendering blog posts with pagination for specific blog category

Parameters

ArrayCollection $blogPostViewAllByCatPaginationJSON

Return Value

JsonResponse

See also

BlogPostViewAllByCatPaginationJSONConverter

at line 160
Response blogCategoryIsotopeJSONPaginationAction(ArrayCollection $blogPostIsotopeJSON)

API route for rendering all blog posts for provided blog category parent id

Parameters

ArrayCollection $blogPostIsotopeJSON

Return Value

Response

See also

BlogPostIsotopeJSONConverter