Sha256: 213fe17f806a4953efe54c9bdd0b8374fc92b9fd92e47d7b33e32fdd952781e8

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

# Server.api4 :list_sources, :get, "/rc/#{Rhoconnect::API_VERSION}/sources/type/:partition_type", \
#             true, {:verb => :post, :url => ['/api/list_sources', '/api/source/list_sources']}  do |params,user|
#   sources = App.load(APP_NAME).sources
#   if params['partition_type'].nil? or params['partition_type'] == 'all'
#     sources.to_json 
#   else
#     res = []
#     sources.each do |name|
#       s = Source.load(name,{:app_id => APP_NAME,:user_id => '*'})
#       if s and s.partition_type and s.partition_type == params['partition_type'].to_sym
#         res << name 
#       end
#     end  
#     res.to_json
#   end  
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhoconnect-4.0.0.beta.10 lib/rhoconnect/api/source/list_sources.rb