finished refactoring on params method and added body_params and url_params to api controller