Skip to content

Commit

Permalink
Merge pull request #2 from wbcsd/1-about-path-definition
Browse files Browse the repository at this point in the history
fix: paths now include version, added servers urls
  • Loading branch information
mill6-plat6aux authored Oct 21, 2024
2 parents 32ebe04 + 2487f46 commit baee586
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
8 changes: 5 additions & 3 deletions pact-openapi-2.1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ tags:
description: Synchronous retrieval of footprints
- name: event
description: Asynchronous exchange of footprints
servers:
- url: https://example.com
paths:
/footprints:
/2/footprints:
get:
summary: Action ListFootprints
description: >
Expand Down Expand Up @@ -86,7 +88,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
/footprints/{id}:
/2/footprints/{id}:
get:
summary: Action GetFootprint
description: ^
Expand Down Expand Up @@ -145,7 +147,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
/events:
/2/events:
post:
summary: Action Event
description: >
Expand Down
8 changes: 5 additions & 3 deletions pact-openapi-2.2.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ tags:
description: Synchronous retrieval of footprints
- name: event
description: Asynchronous exchange of footprints
servers:
- url: https://example.com
paths:
/footprints:
/2/footprints:
get:
summary: Action ListFootprints
description: >
Expand Down Expand Up @@ -86,7 +88,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
/footprints/{id}:
/2/footprints/{id}:
get:
summary: Action GetFootprint
description: ^
Expand Down Expand Up @@ -145,7 +147,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
/events:
/2/events:
post:
summary: Action Event
description: >
Expand Down
9 changes: 4 additions & 5 deletions pact-openapi-2.3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ tags:
- name: event
description: Asynchronous exchange of footprints
servers:
- url: https://dev.wbcsd.org/pact/2
description: Development server
- url: https://example.com
paths:
/footprints:
/2/footprints:
get:
summary: Action ListFootprints
description: >
Expand Down Expand Up @@ -89,7 +88,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
/footprints/{id}:
/2/footprints/{id}:
get:
summary: Action GetFootprint
description: ^
Expand Down Expand Up @@ -147,7 +146,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
security:
- BearerAuth: []
/events:
/2/events:
post:
summary: Action Event
description: >
Expand Down

0 comments on commit baee586

Please sign in to comment.