From 7e7121de3f87b9c7e71487e873fb031b811380d4 Mon Sep 17 00:00:00 2001 From: Tom Akehurst Date: Mon, 4 Aug 2025 14:42:42 +0100 Subject: [PATCH 1/2] Fixed capital letter --- .wiremock/git-pr-workflow-demo/openapi.yaml | 8 ++++++-- .wiremock/git-pr-workflow-demo/stub-mappings.yaml | 12 ++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.wiremock/git-pr-workflow-demo/openapi.yaml b/.wiremock/git-pr-workflow-demo/openapi.yaml index 91b8d1b..90e486d 100644 --- a/.wiremock/git-pr-workflow-demo/openapi.yaml +++ b/.wiremock/git-pr-workflow-demo/openapi.yaml @@ -3,21 +3,25 @@ info: title: Git PR workflow demo version: 1.0.0 servers: +- url: https://8vkjq.wiremockapi.cloud - url: https://git-pr-workflow-demo.wiremockapi.cloud paths: /projects/{projectId}/tasks: get: summary: Get projects by projectId tasks. + description: Get projects by projectId tasks. operationId: getProjectsByProjectIdTasks parameters: - name: projectId in: path required: true + style: simple + explode: false schema: type: string responses: "200": - description: List tasks in project + description: Get projects by projectId tasks. - List tasks in project content: application/json: examples: @@ -27,7 +31,7 @@ paths: "tasks": [ { "id": 12345, - "title": "chore: refactor task manager", + "title": "Chore: refactor task manager", "description": "Factor out the repeated workflow elements to reduce duplication" "labelIds": [53, 67] } diff --git a/.wiremock/git-pr-workflow-demo/stub-mappings.yaml b/.wiremock/git-pr-workflow-demo/stub-mappings.yaml index e4f3da0..a0c1c10 100644 --- a/.wiremock/git-pr-workflow-demo/stub-mappings.yaml +++ b/.wiremock/git-pr-workflow-demo/stub-mappings.yaml @@ -1,7 +1,7 @@ --- mappings: - id: "12e4ca84-f8e7-4c0b-afcd-d5431a5f33a3" - name: "List tasks in project" + name: "Get projects by projectId tasks. - List tasks in project" request: urlPathTemplate: "/projects/{projectId}/tasks" method: "GET" @@ -22,15 +22,23 @@ mappings: } headers: Content-Type: "application/json" + transformerParameters: + graphQlMockDataTransformerParameters: {} uuid: "12e4ca84-f8e7-4c0b-afcd-d5431a5f33a3" persistent: true priority: 5 metadata: mocklab: created: - at: "2025-07-30T20:23:23.541177537Z" + at: "2025-08-04T13:40:27.10561892Z" + via: "IMPORT" + by: "m7m1g" + updated: + at: "2025-08-04T13:40:48.632130884Z" via: "ADMIN_API" by: "m7m1g" + oas: + operationId: "getProjectsByProjectIdTasks" response-example-attachment: "List tasks in project" insertionIndex: 0 postServeActions: [] From d70d1a8d99d417adf7a76962d9c62a3cca1e83bc Mon Sep 17 00:00:00 2001 From: Tom Akehurst Date: Tue, 19 Aug 2025 12:19:16 +0100 Subject: [PATCH 2/2] Tweaked some response example text --- .wiremock/git-pr-workflow-demo/openapi.yaml | 12 ++++++++++++ .wiremock/git-pr-workflow-demo/stub-mappings.yaml | 12 ++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.wiremock/git-pr-workflow-demo/openapi.yaml b/.wiremock/git-pr-workflow-demo/openapi.yaml index 90e486d..150f566 100644 --- a/.wiremock/git-pr-workflow-demo/openapi.yaml +++ b/.wiremock/git-pr-workflow-demo/openapi.yaml @@ -37,3 +37,15 @@ paths: } ] } + Get projects by projectId tasks. - List tasks in project: + value: | + { + "tasks": [ + { + "id": 12345, + "title": "Chore: refactor the task manager component", + "description": "Factor out the repeated workflow elements to reduce duplication" + "labelIds": [53, 67] + } + ] + } diff --git a/.wiremock/git-pr-workflow-demo/stub-mappings.yaml b/.wiremock/git-pr-workflow-demo/stub-mappings.yaml index a0c1c10..47752d6 100644 --- a/.wiremock/git-pr-workflow-demo/stub-mappings.yaml +++ b/.wiremock/git-pr-workflow-demo/stub-mappings.yaml @@ -14,7 +14,7 @@ mappings: "tasks": [ { "id": 12345, - "title": "Chore: refactor task manager", + "title": "Chore: refactor the task manager component", "description": "Factor out the repeated workflow elements to reduce duplication" "labelIds": [53, 67] } @@ -30,16 +30,16 @@ mappings: metadata: mocklab: created: - at: "2025-08-04T13:40:27.10561892Z" - via: "IMPORT" - by: "m7m1g" + at: "2025-08-16T06:34:58.35050062Z" + via: "SYSTEM" updated: - at: "2025-08-04T13:40:48.632130884Z" + at: "2025-08-19T11:17:26.097846862Z" via: "ADMIN_API" by: "m7m1g" oas: operationId: "getProjectsByProjectIdTasks" - response-example-attachment: "List tasks in project" + response-example-attachment: "Get projects by projectId tasks. - List tasks\ + \ in project" insertionIndex: 0 postServeActions: [] serveEventListeners: []