Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .wiremock/git-pr-workflow-demo/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -27,7 +31,19 @@ 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]
}
]
}
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]
}
Expand Down
16 changes: 12 additions & 4 deletions .wiremock/git-pr-workflow-demo/stub-mappings.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -14,24 +14,32 @@ 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]
}
]
}
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-16T06:34:58.35050062Z"
via: "SYSTEM"
updated:
at: "2025-08-19T11:17:26.097846862Z"
via: "ADMIN_API"
by: "m7m1g"
response-example-attachment: "List tasks in project"
oas:
operationId: "getProjectsByProjectIdTasks"
response-example-attachment: "Get projects by projectId tasks. - List tasks\
\ in project"
insertionIndex: 0
postServeActions: []
serveEventListeners: []
Expand Down