API - Basic API calls

This function should not look into requests object. You need to pass array of "name" => value type of thing. There will be moments when some arguments come from URL, some from URL query and some from body. So just make function more dumb enough to work with simple name, value pairs