implemented REST API for index and show actions on the posts route based on fixtures