How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

MockServer expectation API

Create or update expectations - updates if the id matches an existing expectations (only supported by MockServer)

MockServer expectation API is one of 3 APIs that MockServer publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include expectation. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, and a GitHub repository.

This API exposes 2 operations across 2 paths, and defines 25 schemas. It is described by OpenAPI 3.2.0, at version 5.15.x.

Requests are made against 2 base URLs: http://localhost:1080/, https://localhost:1080/.

2 operations 2 paths 25 schemas 2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
5.15.x
Base URL
http://localhost:1080/
License
Resource Areas
1

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 PUT. Each is listed below with its method, path, parameters, and response codes.

expectation 2

Create or update expectations - updates if the id matches an existing expectations (only supported by MockServer)

PUT
/mockserver/expectation
create expectation
body → 201400406
PUT
/mockserver/openapi
create expectations from OpenAPI or Swagger
body → 201400406

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are Expectation (15 properties), HttpRequest (11 properties), ConnectionOptions (7 properties), HttpResponse (7 properties). Each schema is shown below with its type and property counts.

KeyToValue
StringOrJsonSchema
string value that can be support nottable, optional or a json schema
HttpOverrideForwardedRequest
override forwarded request
OpenAPIExpectation
object
open api or swagger expectation
2 properties 1 required
HttpRequest
object
request properties matcher
11 properties
SocketAddress
object
remote address to send request to, only used for request overrides
3 properties
HttpTemplate
object
template to generate response / request
3 properties
ConnectionOptions
object
connection options
7 properties
BodyWithContentType
response body
OpenAPIExpectations
list of open api expectations
TimeToLive
object
time expectation is valid for
3 properties
Protocol
protocol matcher
Body
request body matcher
Expectation
object
expectation
15 properties
HttpClassCallback
object
class callback
2 properties
HttpForward
object
host and port to forward to
4 properties
HttpObjectCallback
object
object / method callback
3 properties
Expectations
list of expectations
OpenAPIDefinition
object
open api or swagger request matcher
2 properties
Delay
object
response delay
2 properties
Times
object
number of responses
2 properties
RequestDefinition
request definition
HttpError
object
error behaviour
3 properties
KeyToMultiValue
HttpResponse
object
response to return
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mockserver-expectation-api-openapi.yml Raw ↑

Other APIs MockServer publishes across the network.

MockServer control API
MockServer verify API
Where this information came from

This is an independent, third-party profile of MockServer expectation API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.