-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontendapp-userapi.json
More file actions
57 lines (57 loc) · 1.11 KB
/
frontendapp-userapi.json
File metadata and controls
57 lines (57 loc) · 1.11 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
{
"consumer": {
"name": "FrontendApp"
},
"provider": {
"name": "UserAPI"
},
"interactions": [
{
"description": "a request for user with ID 1",
"providerState": "User with ID 1 exists",
"request": {
"method": "GET",
"path": "/user/1"
},
"response": {
"status": 200,
"headers": {
},
"body": {
"id": 1,
"name": "John Doe",
"email": "john.doe@example.com"
}
}
},
{
"description": "a request to create a new user",
"providerState": "User creation is successful",
"request": {
"method": "POST",
"path": "/user",
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "New User",
"email": "new.user@example.com"
}
},
"response": {
"status": 201,
"headers": {
},
"body": {
"message": "User created",
"user_id": 3
}
}
}
],
"metadata": {
"pactSpecification": {
"version": "2.0.0"
}
}
}