builder/extra/cluster-home/lib/ruby/tungsten/api.rb
#
# Runs a 'post' call, using a given api_server and service name
#
Runs a 'post' call, using a given api_server and service name
Runs a ' post ' call using a given api_server and service name
def post(api_server, service, post_params = {})
        api_uri = URI(self.make_uri(api_server,service))
        puts  "POST #{api_uri}" if ENV["SHOW_INTERNALS"]
        TU.debug("POST #{api_uri}")
        response = Net::HTTP.post_form(api_uri, post_params)
        return evaluate_response(api_server,response)
    end
def post ( api_server , service , post_params = { } ) api_uri = URI ( self . make_uri ( api_server , service ) ) puts "POST #{api_uri}" if ENV [ "SHOW_INTERNALS" ] TU . debug ( "POST #{api_uri}" ) response = Net :: HTTP . post_form ( api_uri , post_params ) return evaluate_response ( api_server , response ) end
Runs a 'post' call, using a given api_server and service name
Runs a ' post ' call using a given api_server and service name
api_server
service
post_params