-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Includes: * fix: .gitignore is properly ignoring files now
- Loading branch information
Showing
10 changed files
with
1,819 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,7 @@ yarn-debug.log* | |
yarn-error.log* | ||
|
||
pacts/ | ||
logs/ | ||
logs/ | ||
|
||
# IDE | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
presets: [ | ||
['@babel/preset-env', {targets: {node: 'current'}}], | ||
'@babel/preset-typescript', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GET /products/10 HTTP/1.1 | ||
Host: api.example.com | ||
User-Agent: curl/8.1.2 | ||
Accept: application/json; charset=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json; charset=utf-8 | ||
Content-Length: 96 | ||
|
||
{ | ||
"id": "10", | ||
"name": "Aussie", | ||
"type": "Pizza", | ||
"version": "v1", | ||
"price": 9.99, | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Product API | ||
description: Pactflow Product API demo | ||
version: 1.0.0 | ||
paths: | ||
/products: | ||
get: | ||
summary: List all products | ||
description: Returns all products | ||
operationId: getAllProducts | ||
responses: | ||
"200": | ||
description: successful operation | ||
content: | ||
"application/json; charset=utf-8": | ||
schema: | ||
type: "array" | ||
items: | ||
$ref: '#/components/schemas/Product' | ||
examples: | ||
application/json: | ||
value: | ||
- id: "1234" | ||
type: "food" | ||
price: 42 | ||
# name: "pizza" | ||
# version: "1.0.0" | ||
# see https://github.com/apiaryio/dredd/issues/1430 for why | ||
"400": | ||
description: Invalid ID supplied | ||
content: {} | ||
/product/{id}: | ||
get: | ||
summary: Find product by ID | ||
description: Returns a single product | ||
operationId: getProductByID | ||
parameters: | ||
- name: id | ||
in: path | ||
description: ID of product to get | ||
schema: | ||
type: string | ||
required: true | ||
example: 10 | ||
responses: | ||
"200": | ||
description: successful operation | ||
content: | ||
"application/json; charset=utf-8": | ||
schema: | ||
$ref: '#/components/schemas/Product' | ||
examples: | ||
application/json: | ||
value: | ||
id: "1234" | ||
type: "food" | ||
price: 42 | ||
# name: "pizza" | ||
# version: "1.0.0" | ||
# see https://github.com/apiaryio/dredd/issues/1430 for why | ||
"400": | ||
description: Invalid ID supplied | ||
content: {} | ||
"401": | ||
description: Product not found | ||
content: {} | ||
"404": | ||
description: Product not found | ||
content: {} | ||
components: | ||
schemas: | ||
Product: | ||
type: object | ||
required: | ||
- id | ||
- name | ||
- price | ||
properties: | ||
id: | ||
type: string | ||
type: | ||
type: string | ||
name: | ||
type: string | ||
version: | ||
type: string | ||
price: | ||
type: number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.