Sha256: 21d1a2419e660cdbdba97926cddc078a88478bfe8222716e91a6443eab048e9f
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
module OwaspZap class Policy def initialize(params = {}) @base = params[:base] end def all(format = "JSON") # http://127.0.0.1:8080/JSON/ascan/view/policies/?zapapiformat=JSON url = Addressable::URI.parse "#{@base}/#{format}/ascan/view/policies/" url.query_values = {:zapapiformat=>format} RestClient::get url.normalize.to_str end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
owasp_zap-0.1.0 | lib/owasp_zap/policy.rb |
owasp_zap-0.0.95 | lib/owasp_zap/policy.rb |