adding rest-client to test api through console, and refactoring
fixing conflicts