The API retrieves image suggestions for a given production article ID. For non-production environment, this doesn't work since page ID is different than production so we need the ability to query the suggestions for a given page title.
API Documentation: https://www.mediawiki.org/wiki/Platform_Engineering_Team/Data_Value_Stream/Data_Gateway#Image_Suggestions
To achieve this with the new API:
- Get the production page ID for the current title via title_cache endpoint (This is blocked by T311220: title_cache endpoint for image suggestions api doesn't work)
- Use the page ID from the previous step to query image suggestions via /public/image_suggestions/suggestions/{wiki}/{page_id}
For local development, the current workaround is to use SubpageImageRecommendationProvider to mock the API response.