Skip to content

Commit ee561c1

Browse files
authored
Merge pull request #2 from wiremock-inc/change-1
Made some changes
2 parents 890038f + 2ebd40e commit ee561c1

File tree

2 files changed

+48
-14
lines changed

2 files changed

+48
-14
lines changed

.wiremock/git-pr-workflow-demo/openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
openapi: 3.0.1
22
info:
33
title: Git PR workflow demo
4+
description: My test API
45
version: 1.0.0
56
servers:
6-
- url: https://8vkjq.wiremockapi.cloud
7-
- url: https://git-pr-workflow-demo.wiremockapi.cloud
7+
- url: https://1mlq9.wiremockapi.cloud
88
paths:
99
/projects/{projectId}/tasks:
1010
get:
@@ -21,7 +21,7 @@ paths:
2121
type: string
2222
responses:
2323
"200":
24-
description: Get projects by projectId tasks. - List tasks in project
24+
description: 'Get projects by projectId tasks. - List tasks in project'
2525
content:
2626
application/json:
2727
examples:
@@ -43,7 +43,7 @@ paths:
4343
"tasks": [
4444
{
4545
"id": 12345,
46-
"title": "Chore: refactor the task manager component",
46+
"title": "Chore: refactor the task manager module",
4747
"description": "Factor out the repeated workflow elements to reduce duplication"
4848
"labelIds": [53, 67]
4949
}
Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,63 @@
11
---
22
mappings:
3-
- id: "12e4ca84-f8e7-4c0b-afcd-d5431a5f33a3"
3+
- id: "6853df9d-80b5-40ad-bb5a-71e3be375986"
44
name: "Get projects by projectId tasks. - List tasks in project"
55
request:
66
urlPathTemplate: "/projects/{projectId}/tasks"
77
method: "GET"
8-
pathParameters: {}
9-
formParameters: {}
8+
pathParameters:
9+
projectId:
10+
equalTo: "slpo"
11+
response:
12+
status: 200
13+
body: |
14+
{
15+
"tasks": [
16+
{
17+
"id": 12345,
18+
"title": "Chore: refactor task manager",
19+
"description": "Factor out the repeated workflow elements to reduce duplication"
20+
"labelIds": [53, 67]
21+
}
22+
]
23+
}
24+
headers:
25+
Content-Type: "application/json"
26+
uuid: "6853df9d-80b5-40ad-bb5a-71e3be375986"
27+
persistent: true
28+
priority: 5
29+
metadata:
30+
mocklab:
31+
created:
32+
at: "2025-09-17T15:29:02.787415763Z"
33+
via: "OAS3_IMPORT"
34+
by: "m7m1g"
35+
oas:
36+
operationId: "getProjectsByProjectIdTasks"
37+
response-example-attachment: "Get projects by projectId tasks. - List tasks\
38+
\ in project"
39+
insertionIndex: 0
40+
- id: "12e4ca84-f8e7-4c0b-afcd-d5431a5f33a3"
41+
name: "Get projects by projectId tasks. - Get projects by projectId tasks. - List\
42+
\ tasks in project"
43+
request:
44+
urlPathTemplate: "/projects/{projectId}/tasks"
45+
method: "GET"
1046
response:
1147
status: 200
1248
body: |
1349
{
1450
"tasks": [
1551
{
1652
"id": 12345,
17-
"title": "Chore: refactor the task manager component",
53+
"title": "Chore: refactor the task manager module",
1854
"description": "Factor out the repeated workflow elements to reduce duplication"
1955
"labelIds": [53, 67]
2056
}
2157
]
2258
}
2359
headers:
2460
Content-Type: "application/json"
25-
transformerParameters:
26-
graphQlMockDataTransformerParameters: {}
2761
uuid: "12e4ca84-f8e7-4c0b-afcd-d5431a5f33a3"
2862
persistent: true
2963
priority: 5
@@ -33,8 +67,8 @@ mappings:
3367
at: "2025-08-16T06:34:58.35050062Z"
3468
via: "SYSTEM"
3569
updated:
36-
at: "2025-08-19T11:17:26.097846862Z"
37-
via: "ADMIN_API"
70+
at: "2025-09-17T15:29:02.788891244Z"
71+
via: "OAS3_IMPORT"
3872
by: "m7m1g"
3973
oas:
4074
operationId: "getProjectsByProjectIdTasks"
@@ -45,7 +79,7 @@ mappings:
4579
serveEventListeners: []
4680
meta:
4781
start: 1
48-
end: 1
49-
total: 1
82+
end: 2
83+
total: 2
5084
page: 1
5185
totalPages: 1

0 commit comments

Comments
 (0)