You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: foos_controller.rb
    path of file: ./repos/versionist/spec/test-api/app/controllers/v1
    
    the code of the file until where you have to start completion: class V1::FoosController < ApplicationC
    
  def index
    respond_to do |format|
      format.text { render :text => "v1" }
      format.json { render :json => "v1" }
      format.xml { render :xml => "v1" }
    end
  end