I assume that you will start by defining the functions (e.g. addUser, addStory, addComment, editXYZ, etc., depending on the type of site) that are supported by websites and the data that it provides (getCommentsForStory, getStories, getUser , ...) and the creation of web services APIs for these functions with appropriate security checks, etc.
If you have well coded a website, placing a web service level in front of your website should be fairly simple (this is just another view on top of your controller and model).
source share