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: deprecated_field_spec.rb
    path of file: ./repos/grape-swagger/spec/swagger_v2
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'spec_helper'

describe 'deprecated endpoint' do
  def app
    Class.new(Grape::API) do
      desc 'Depreca
    
  def app
    Class.new(Grape::API) do
      desc 'Deprecated endpoint', deprecated: true
      get '/foobar' do
        { foo: 'bar' }
      end

      add_swagger_documentation
    end
  end