Class: ZAPv2::GraphQL
- Inherits:
-
Object
- Object
- ZAPv2::GraphQL
- Defined in:
- lib/zap/v2apis/graphql.rb
Instance Method Summary collapse
- #import_file(endurl, file) ⇒ Object
- #import_url(endurl, url) ⇒ Object
-
#initialize(client) ⇒ GraphQL
constructor
A new instance of GraphQL.
- #option_args_type ⇒ Object
- #option_lenient_max_query_depth_enabled ⇒ Object
- #option_max_additional_query_depth ⇒ Object
- #option_max_args_depth ⇒ Object
- #option_max_query_depth ⇒ Object
- #option_optional_args_enabled ⇒ Object
- #option_query_gen_enabled ⇒ Object
- #option_query_split_type ⇒ Object
- #option_request_method ⇒ Object
- #set_option_args_type(string) ⇒ Object
- #set_option_lenient_max_query_depth_enabled(boolean) ⇒ Object
- #set_option_max_additional_query_depth(integer) ⇒ Object
- #set_option_max_args_depth(integer) ⇒ Object
- #set_option_max_query_depth(integer) ⇒ Object
- #set_option_optional_args_enabled(boolean) ⇒ Object
- #set_option_query_gen_enabled(boolean) ⇒ Object
- #set_option_query_split_type(string) ⇒ Object
- #set_option_request_method(string) ⇒ Object
Constructor Details
#initialize(client) ⇒ GraphQL
Returns a new instance of GraphQL.
5 6 7 |
# File 'lib/zap/v2apis/graphql.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#import_file(endurl, file) ⇒ Object
45 46 47 |
# File 'lib/zap/v2apis/graphql.rb', line 45 def import_file(endurl, file) @client.get("/JSON/graphql/action/importFile/?endurl=#{endurl}&file=#{file}") end |
#import_url(endurl, url) ⇒ Object
49 50 51 |
# File 'lib/zap/v2apis/graphql.rb', line 49 def import_url(endurl, url) @client.get("/JSON/graphql/action/importUrl/?endurl=#{endurl}&url=#{url}") end |
#option_args_type ⇒ Object
9 10 11 |
# File 'lib/zap/v2apis/graphql.rb', line 9 def option_args_type @client.get('/JSON/graphql/view/optionArgsType/') end |
#option_lenient_max_query_depth_enabled ⇒ Object
13 14 15 |
# File 'lib/zap/v2apis/graphql.rb', line 13 def option_lenient_max_query_depth_enabled @client.get('/JSON/graphql/view/optionLenientMaxQueryDepthEnabled/') end |
#option_max_additional_query_depth ⇒ Object
17 18 19 |
# File 'lib/zap/v2apis/graphql.rb', line 17 def option_max_additional_query_depth @client.get('/JSON/graphql/view/optionMaxAdditionalQueryDepth/') end |
#option_max_args_depth ⇒ Object
21 22 23 |
# File 'lib/zap/v2apis/graphql.rb', line 21 def option_max_args_depth @client.get('/JSON/graphql/view/optionMaxArgsDepth/') end |
#option_max_query_depth ⇒ Object
25 26 27 |
# File 'lib/zap/v2apis/graphql.rb', line 25 def option_max_query_depth @client.get('/JSON/graphql/view/optionMaxQueryDepth/') end |
#option_optional_args_enabled ⇒ Object
29 30 31 |
# File 'lib/zap/v2apis/graphql.rb', line 29 def option_optional_args_enabled @client.get('/JSON/graphql/view/optionOptionalArgsEnabled/') end |
#option_query_gen_enabled ⇒ Object
33 34 35 |
# File 'lib/zap/v2apis/graphql.rb', line 33 def option_query_gen_enabled @client.get('/JSON/graphql/view/optionQueryGenEnabled/') end |
#option_query_split_type ⇒ Object
37 38 39 |
# File 'lib/zap/v2apis/graphql.rb', line 37 def option_query_split_type @client.get('/JSON/graphql/view/optionQuerySplitType/') end |
#option_request_method ⇒ Object
41 42 43 |
# File 'lib/zap/v2apis/graphql.rb', line 41 def option_request_method @client.get('/JSON/graphql/view/optionRequestMethod/') end |
#set_option_args_type(string) ⇒ Object
53 54 55 |
# File 'lib/zap/v2apis/graphql.rb', line 53 def set_option_args_type(string) @client.get("/JSON/graphql/action/setOptionArgsType/?String=#{string}") end |
#set_option_lenient_max_query_depth_enabled(boolean) ⇒ Object
57 58 59 |
# File 'lib/zap/v2apis/graphql.rb', line 57 def set_option_lenient_max_query_depth_enabled(boolean) @client.get("/JSON/graphql/action/setOptionLenientMaxQueryDepthEnabled/?Boolean=#{boolean}") end |
#set_option_max_additional_query_depth(integer) ⇒ Object
61 62 63 |
# File 'lib/zap/v2apis/graphql.rb', line 61 def set_option_max_additional_query_depth(integer) @client.get("/JSON/graphql/action/setOptionMaxAdditionalQueryDepth/?Integer=#{integer}") end |
#set_option_max_args_depth(integer) ⇒ Object
65 66 67 |
# File 'lib/zap/v2apis/graphql.rb', line 65 def set_option_max_args_depth(integer) @client.get("/JSON/graphql/action/setOptionMaxArgsDepth/?Integer=#{integer}") end |
#set_option_max_query_depth(integer) ⇒ Object
69 70 71 |
# File 'lib/zap/v2apis/graphql.rb', line 69 def set_option_max_query_depth(integer) @client.get("/JSON/graphql/action/setOptionMaxQueryDepth/?Integer=#{integer}") end |
#set_option_optional_args_enabled(boolean) ⇒ Object
73 74 75 |
# File 'lib/zap/v2apis/graphql.rb', line 73 def set_option_optional_args_enabled(boolean) @client.get("/JSON/graphql/action/setOptionOptionalArgsEnabled/?Boolean=#{boolean}") end |
#set_option_query_gen_enabled(boolean) ⇒ Object
77 78 79 |
# File 'lib/zap/v2apis/graphql.rb', line 77 def set_option_query_gen_enabled(boolean) @client.get("/JSON/graphql/action/setOptionQueryGenEnabled/?Boolean=#{boolean}") end |
#set_option_query_split_type(string) ⇒ Object
81 82 83 |
# File 'lib/zap/v2apis/graphql.rb', line 81 def set_option_query_split_type(string) @client.get("/JSON/graphql/action/setOptionQuerySplitType/?String=#{string}") end |
#set_option_request_method(string) ⇒ Object
85 86 87 |
# File 'lib/zap/v2apis/graphql.rb', line 85 def set_option_request_method(string) @client.get("/JSON/graphql/action/setOptionRequestMethod/?String=#{string}") end |