Sha256: 0a457635c9f928002b3cf33882f0302da301d19d6520688f656b7ed7c1a7c2d0
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.0.4 | lib/tester/definition/methods/api_post.rb |
api-tester-0.0.3 | lib/tester/definition/methods/api_post.rb |