-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessages-retrieve-api.yaml
More file actions
88 lines (81 loc) · 2.31 KB
/
messages-retrieve-api.yaml
File metadata and controls
88 lines (81 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
openapi: 3.0.3
info:
title: Messages Retrieve API
description: API to retrieve messages served by the mock server
version: 1.0.0
paths:
/_specmatic/messages:
get:
summary: Retrieve served messages
description: >
Returns the list of messages served by the mock server.
You can optionally pass one or more query parameters as filters in the form `key=value`,
where each filter is an equality check (`key == value`) against message
parameters:
- in: query
name: filter
required: false
schema:
type: string
description: >
Any query parameter can be used as a filter.
The parameter name represents a request/response pointers
Example:
/_specmatic/messages?REQUEST.METHOD=GET
/_specmatic/messages?RESPONSE.STATUS=200
/_specmatic/messages?REQUEST.PARAMETERS.HEADER.Content-Type=application/json
explode: true
allowReserved: true
responses:
"200":
description: Retrieved list of served messages
content:
application/json:
schema:
$ref: "#/components/schemas/MessagesResponse"
components:
schemas:
AnyValue: {}
MessagesResponse:
description: List of served message
type: array
items:
$ref: "#/components/schemas/RequestResponseSchema"
RequestResponseSchema:
type: object
properties:
http-request:
$ref: "#/components/schemas/RequestSchema"
http-response:
$ref: "#/components/schemas/ResponseSchema"
required:
- http-request
- http-response
RequestSchema:
type: object
properties:
path:
type: string
method:
type: string
query:
type: object
additionalProperties: true
headers:
type: object
additionalProperties: true
body:
nullable: true
$ref: "#/components/schemas/AnyValue"
ResponseSchema:
type: object
properties:
status:
type: integer
minimum: 0
headers:
type: object
additionalProperties: true
body:
nullable: true
$ref: "#/components/schemas/AnyValue"