app/controllers/api/v1/connection_links_controller.rb
class Api::V1::ConnectionLinksController < Api::V1::ChouetteController
defaults :resource_class => Chouette::ConnectionLink, :finder => :find_by_objectid!
protected
def collection
@connection_links ||= ( @referential ? @referential.connection_links.search(params[:q]).result(:distinct => true) : [])
end
end