Table of contents
This function enables to like a post.
parent of current request
payload provided with the request
context of entire application
The following checks are done:
- If the user exists
- If the post exists
- If the user has already liked the post.