Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.06 KB

ExpectationApi.md

File metadata and controls

51 lines (32 loc) · 1.06 KB

MockServer::ExpectationApi

All URIs are relative to http://localhost:1080

Method HTTP request Description
expectation_put PUT /expectation create expectation

expectation_put

expectation_put(expectations)

create expectation

Example

# load the gem
require 'mockserver-client'

api_instance = MockServer::ExpectationApi.new
expectations = nil # Array<Expectations> | expectation to create

begin
  #create expectation
  api_instance.expectation_put(expectations)
rescue MockServer::ApiError => e
  puts "Exception when calling ExpectationApi->expectation_put: #{e}"
end

Parameters

Name Type Description Notes
expectations Array<Expectations> expectation to create

Return type

nil (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined