Sha256: a4d37a207f95da1cc393d311f0c3adb6dd935373f8223136abb8ee43c2d73c4c

Contents?: true

Size: 812 Bytes

Versions: 23

Compression:

Stored size: 812 Bytes

Contents

module Rhoconnect
  module Controller  
    class StoreController < Rhoconnect::Controller::APIBase
      set_default :admin_required, true
      set_default :login_required, false
      set_default :source_required, false
      set_default :client_required, false

      register Rhoconnect::EndPoint
      
      get "/:doc", \
                :deprecated_route => {:verb => :post, :url => ['/api/get_db_doc', '/api/source/get_db_doc']} do
        Store.get_db_doc(params[:doc])
      end
      
      post "/:doc", \
                  :deprecated_route => {:verb => :post, :url => ['/api/set_db_doc', '/api/source/set_db_doc'] } do
        append_to_doc = params[:append]
        append_to_doc ||= false
        Store.set_db_doc(params[:doc],params[:data],append_to_doc)
        ''
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 lib/rhoconnect/controller/store_controller.rb
rhoconnect-7.5.1 lib/rhoconnect/controller/store_controller.rb
rhoconnect-7.4.1 lib/rhoconnect/controller/store_controller.rb
rhoconnect-7.1.17 lib/rhoconnect/controller/store_controller.rb
rhoconnect-6.2.0 lib/rhoconnect/controller/store_controller.rb
rhoconnect-6.0.11 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.18 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.17 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.15 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.0.22 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.2 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.0.7 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.0.3 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.5.0 lib/rhoconnect/controller/store_controller.rb
rhoconnect-5.1.1 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.4 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.3 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.2 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.1 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.0 lib/rhoconnect/controller/store_controller.rb