lib/jamf/api/connection.rb
# The start of the path for API resources
The start of the path for API resources
The start of the path for API resources
def post(rsrc, data)
      validate_connected
      resp = @rest_cnx.post(rsrc) do |req|
        req.body = data
      end
      @last_http_response = resp
      return resp.body if resp.success?
      raise Jamf::Connection::APIError, resp
    end
def post ( rsrc , data ) validate_connected resp = @rest_cnx . post ( rsrc ) do | req | req . body = data end @last_http_response = resp return resp . body if resp . success? raise Jamf :: Connection :: APIError , resp end
The start of the path for API resources
The start of the path for API resources
rsrc
data