The API route path (e.g., '/users', '/products/123').
Optionalqry: { [key: string]: any }Optional query parameters object to append to the URL.
OptionalbaseUrl: stringOptional custom base URL. If not provided, uses environment-specific URL.
The complete API URL with query parameters.
Generates a complete API URL with query parameters.
This function constructs a full API URL by combining a base URL with a route and optional query parameters. It handles environment-specific base URLs and automatically formats query parameters into the URL.