So I'd like to create a commenting system, which will have an endpoint of something like:
mysite.com/comments/12345
So, I'd like the user who created the comment to be able to close off a comment, which would prevent any additional replies to the comment. Let's just say that the server method will be named "Close".
My question:
- What does the url look like?
- What does the body contain? (I assume that it will need to contain some way to authenticate who the user is that is submitting the action, but does it include any additional information, such as commentid?)
- What Http Verb do I use?
I will probably use ASP.Net Web API as the platform, though this is REST, so I assume that should have no bearing on the solution.