This does not answer your specific question, but I would recommend a cleaner URL that is more RESTful.
For working with blogs, they generally interact with the base resource /blogs .
POST /blogs to create a blog.
GET /blogs to list all blogs.
To work with a specific blog, you indicate which blog.
GET /blogs/:id to get detailed information for a specific blog.
Now indicate which subresource of the blog you want to interact with.
POST /blogs/:id/posts to create a new post.
GET /blogs/:id/posts/:id to get detailed post information for a specific blog.
source share