Add show_index flag to Api class