Using &str in api calls, making it less verbose