-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
60 lines (57 loc) · 1.08 KB
/
config.yaml
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
/status:
GET:
headers:
Content-Type: text/html; charset=utf-8
body: |
<!DOCTYPE html>
<html>
<head>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
font-size: calc(10px + 2vmin);
color: #333;
}
</style>
</head>
<body>
<div>
<p>The mock server is up and running!</p>
</div>
</body>
</html>
status: 200
/book:
GET:
headers:
Content-Type: application/json; charset=utf-8
body: |
{
"book": "title"
}
status: 200
POST:
headers:
Key-1: Value-1
status: 201
/xml:
POST:
headers:
Key-1: Value-1
status: 202
body: |
<note>
<to>X</to>
<from>Y</from>
<heading>Reminder</heading>
<body>Don't give up!</body>
</note>
/unauthorized:
GET:
status: 401