class MockServer::VerifyApi
Attributes
Public Class Methods
# File lib/mockserver-client/api/verify_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
verify a request has been received a specific number of times @param verification request matcher and the number of times to match @param [Hash] opts the optional parameters @return [nil]
# File lib/mockserver-client/api/verify_api.rb, line 26 def verify_put(verification, opts = {}) verify_put_with_http_info(verification, opts) nil end
verify a request has been received a specific number of times @param verification request matcher and the number of times to match @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/mockserver-client/api/verify_api.rb, line 35 def verify_put_with_http_info(verification, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VerifyApi.verify_put ...' end # verify the required parameter 'verification' is set if @api_client.config.client_side_validation && verification.nil? fail ArgumentError, "Missing the required parameter 'verification' when calling VerifyApi.verify_put" end # resource path local_var_path = '/verify' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(verification) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VerifyApi#verify_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
verify a sequence of request has been received in the specific order @param verification_sequence the sequence of requests matchers @param [Hash] opts the optional parameters @return [nil]
# File lib/mockserver-client/api/verify_api.rb, line 78 def verify_sequence_put(verification_sequence, opts = {}) verify_sequence_put_with_http_info(verification_sequence, opts) nil end
verify a sequence of request has been received in the specific order @param verification_sequence the sequence of requests matchers @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/mockserver-client/api/verify_api.rb, line 87 def verify_sequence_put_with_http_info(verification_sequence, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VerifyApi.verify_sequence_put ...' end # verify the required parameter 'verification_sequence' is set if @api_client.config.client_side_validation && verification_sequence.nil? fail ArgumentError, "Missing the required parameter 'verification_sequence' when calling VerifyApi.verify_sequence_put" end # resource path local_var_path = '/verifySequence' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(verification_sequence) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VerifyApi#verify_sequence_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end