added all the methods. needs some refactoring and testing
added body data for the post requests, and added additional check for the parseParams method