Use string.format() to generate REST URL string endpoint.