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-4.0.0.beta.24 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.0.beta.10 lib/rhoconnect/controller/store_controller.rb
rhoconnect-4.0.0.beta.12 lib/rhoconnect/controller/store_controller.rb