app/controllers/institutions_controller.rb
# returns a list of all institutions in JSON format
returns a list of all institutions in JSON format
returns a list of all institutions in JSON format
def request_all
    institution_id = white_list(params[:id])
    institution_list = Institution.get_all_institutions_listing
    respond_to do |format|
      format.json do
        render json: { status: 200, institution_list: institution_list }
      end
    end
  end
def request_all institution_id = white_list ( params [ :id ] ) institution_list = Institution . get_all_institutions_listing respond_to do | format | format . json do render json : { status : 200 , institution_list : institution_list } end end end
returns a list of all institutions in JSON format
returns a list of all institutions in JSON format
# listing all institutions is public data, but still # we require login to protect from unwanted requests