Sha256: 4f408049123fcd352ae5139b2d034f2084f87a97176dcceef0121b7a6ce547d7
Contents?: true
Size: 492 Bytes
Versions: 13
Compression:
Stored size: 492 Bytes
Contents
Server.api4 :user_set_db_doc, :post, "/rc/#{Rhoconnect::API_VERSION}/users/:user_id/sources/:source_id/docs/:doc", true, nil do |params,user| throw :halt, [500, "Unknown user '#{params[:user_id]}'"] unless User.is_exist?(params[:user_id]) s = Source.load(params[:source_id], {:app_id => APP_NAME,:user_id => params[:user_id]}) db_key = s.docname(params[:doc]) append_to_doc = params[:append] append_to_doc ||= false Store.set_db_doc(db_key,params[:data],append_to_doc) '' end
Version data entries
13 entries across 13 versions & 1 rubygems