git.iko.soy/typeable/mock-server-client
on master help sign in
Merge branch 'update-openapi-spec'
3f2964eAleksey Uymanov
codegen/mock-server-openapi.yaml+11−4
@@ -4,7 +4,7 @@ servers:
4 - url: 'https://localhost:1080/'
4 - url: 'https://localhost:1080/'
5info:
5info:
6 title: MockServer API
6 title: MockServer API
7− version: 5.13.x
7+ version: 5.15.x
8 description: >-
8 description: >-
9 MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below).
9 MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below).
10
10
@@ -18,7 +18,7 @@ info:
18 name: Apache 2.0
18 name: Apache 2.0
19tags:
19tags:
20 - name: expectation
20 - name: expectation
21− description: Create or update expectations - updates if the id matches an existing expecations (only supported by MockServer)
21+ description: Create or update expectations - updates if the id matches an existing expectations (only supported by MockServer)
22 - name: verify
22 - name: verify
23 description: Verify requests (both MockServer & MockServer Proxy)
23 description: Verify requests (both MockServer & MockServer Proxy)
24 - name: control
24 - name: control
@@ -96,7 +96,7 @@ paths:
96 oneOf:
96 oneOf:
97 - $ref: "#/components/schemas/RequestDefinition"
97 - $ref: "#/components/schemas/RequestDefinition"
98 - $ref: "#/components/schemas/ExpectationId"
98 - $ref: "#/components/schemas/ExpectationId"
99− description: request used to match expectations and recored requests to clear
99+ description: request used to match expectations and record requests to clear
100 /mockserver/reset:
100 /mockserver/reset:
101 put:
101 put:
102 tags:
102 tags:
@@ -116,7 +116,7 @@ paths:
116 schema:
116 schema:
117 type: string
117 type: string
118 enum: [ "java", "json", "log_entries" ]
118 enum: [ "java", "json", "log_entries" ]
119− description: changes response format, default if not specificed is "json", supported values are "java", "json", "log_entries"
119+ description: changes response format, default if not specified is "json", supported values are "java", "json", "log_entries"
120 - in: query
120 - in: query
121 name: type
121 name: type
122 schema:
122 schema:
@@ -363,6 +363,8 @@ components:
363 $ref: "#/components/schemas/KeyToValue"
363 $ref: "#/components/schemas/KeyToValue"
364 socketAddress:
364 socketAddress:
365 $ref: "#/components/schemas/SocketAddress"
365 $ref: "#/components/schemas/SocketAddress"
366+ protocol:
367+ $ref: "#/components/schemas/Protocol"
366 OpenAPIDefinition:
368 OpenAPIDefinition:
367 title: "open api or swagger request matcher"
369 title: "open api or swagger request matcher"
368 type: object
370 type: object
@@ -837,6 +839,11 @@ components:
837 - XPATH
839 - XPATH
838 xpath:
840 xpath:
839 type: string
841 type: string
842+ Protocol:
843+ description: "protocol matcher"
844+ enum:
845+ - HTTP_1_1
846+ - HTTP_2
840 Body:
847 Body:
841 description: "request body matcher"
848 description: "request body matcher"
842 anyOf:
849 anyOf: