I am using mvc webapi to create a REST API and struggling to find an example dealing with POSTs to nested resources.
Basically, I want to POST a comment to a blog post using a URL like:
~/posts/2/comments
I would also like to be able to send DELETE and PUTs to the following
~/posts/2/comments/5
What should my route registration look like, and what should my method signature on my PostsController look like?
Thanks!