require 'tester/definition/request' require 'tester/definition/response' require "tester/version" require 'rest-client' require 'json' require 'tester/definition/methods/api_method' require 'tester/reporter/api_report' require 'tester/reporter/status_code_report' class ApiPost < ApiMethod attr_accessor :syntax_error_response def post url, json_payload, headers RestClient.post(url, json_payload, headers) { |real_response, request, result| real_response } end def call url, body_params={}, request_params={} post url, body_params.to_json, request_params end def verb SupportedVerbs::POST end end