Skip to content

Commit

Permalink
Merge pull request #19 from heureka/feature-merch-2645
Browse files Browse the repository at this point in the history
MERCH-2645: Remove unnecessary examples
  • Loading branch information
dobos-peter-arukereso authored Apr 10, 2024
2 parents 1de08ce + 8a728e3 commit ea47c3e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 196 deletions.
56 changes: 0 additions & 56 deletions storage/api-docs/egress/payment/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,62 +64,6 @@ components:
minItems: 0
items:
$ref: '#/components/schemas/binding'
example:
transport :
- id: 1
type: 1
name: "PPL"
price: 4
description: "Within 1 - 2 working days."
- id: 2
type: 1
name: "Slovenská pošta"
price: 3.5
description: "Within 2-3 working days."
- id: 4
type: 2
name: "Personal subscription Lozorno"
price: 0
description: "We will tell you that the goods are ready for collection..."
store:
id: 2020
type: 1
payment:
- id: 123
type: 1
price: 1
name: "Dobierka Slovenská pošta"
- id: 200
type: 1
price: 1.1
name: "Dobierka PPL"
- id: 300
type: 3
price: 0.00
name: "Platba kartou"
- id: 100
type: 2
price: 0.33
name: "Payment on collection"
binding:
- id: 1
transportId: 1
paymentId: 200
- id: 5
transportId: 1
paymentId: 300
- id: 2
transportId: 2
paymentId: 123
- id: 6
transportId: 2
paymentId: 300
- id: 4
transportId: 4
paymentId: 300
- id: 7
transportId: 4
paymentId: 100

transport:
type: object
Expand Down
19 changes: 0 additions & 19 deletions storage/api-docs/egress/products/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,6 @@ components:
type: array
items:
$ref: '#/components/schemas/ProductsAvailability'
example:
- id: ABC123
count: 3
available: true
delivery: 0
name: "Tactical Velvet Smoothie pre Apple iPhone 14 57983109814"
price: 10.99
related:
[title: "Free gift bag", title: "Free delivery"]
priceTotal: 10.99
- id: DFC123
count: 2
available: true
delivery: 1
name: "Apple iPhone 10 45EA11111"
price: 14.99
related:
[title: "Free gift baseball cap"]
priceTotal: 14.99
priceSum:
description: Total price (for all products)
type: number
Expand Down
122 changes: 1 addition & 121 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,40 +164,7 @@
"example": 10.99
}
}
},
"example": [
{
"id": "ABC123",
"count": 3,
"available": true,
"delivery": 0,
"name": "Tactical Velvet Smoothie pre Apple iPhone 14 57983109814",
"price": 10.99,
"related": [
{
"title": "Free gift bag"
},
{
"title": "Free delivery"
}
],
"priceTotal": 10.99
},
{
"id": "DFC123",
"count": 2,
"available": true,
"delivery": 1,
"name": "Apple iPhone 10 45EA11111",
"price": 14.99,
"related": [
{
"title": "Free gift baseball cap"
}
],
"priceTotal": 14.99
}
]
}
},
"priceSum": {
"description": "Total price (for all products)",
Expand Down Expand Up @@ -419,93 +386,6 @@
}
}
}
},
"example": {
"transport": [
{
"id": 1,
"type": 1,
"name": "PPL",
"price": 4,
"description": "Within 1 - 2 working days."
},
{
"id": 2,
"type": 1,
"name": "Slovenská pošta",
"price": 3.5,
"description": "Within 2-3 working days."
},
{
"id": 4,
"type": 2,
"name": "Personal subscription Lozorno",
"price": 0,
"description": "We will tell you that the goods are ready for collection...",
"store": {
"id": 2020,
"type": 1
}
}
],
"payment": [
{
"id": 123,
"type": 1,
"price": 1,
"name": "Dobierka Slovenská pošta"
},
{
"id": 200,
"type": 1,
"price": 1.1,
"name": "Dobierka PPL"
},
{
"id": 300,
"type": 3,
"price": 0,
"name": "Platba kartou"
},
{
"id": 100,
"type": 2,
"price": 0.33,
"name": "Payment on collection"
}
],
"binding": [
{
"id": 1,
"transportId": 1,
"paymentId": 200
},
{
"id": 5,
"transportId": 1,
"paymentId": 300
},
{
"id": 2,
"transportId": 2,
"paymentId": 123
},
{
"id": 6,
"transportId": 2,
"paymentId": 300
},
{
"id": 4,
"transportId": 4,
"paymentId": 300
},
{
"id": 7,
"transportId": 4,
"paymentId": 100
}
]
}
}
]
Expand Down

0 comments on commit ea47c3e

Please sign in to comment.