Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.36 KB

ExpectationApi.md

File metadata and controls

54 lines (36 loc) · 1.36 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

from __future__ import print_function
import time
import mockserver
from mockserver.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = mockserver.ExpectationApi()
expectations = NULL # list[Expectations] | expectation to create

try:
    # create expectation
    api_instance.expectation_put(expectations)
except ApiException as e:
    print("Exception when calling ExpectationApi->expectation_put: %s\n" % e)

Parameters

Name Type Description Notes
expectations list[Expectations] expectation to create

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]