Compare commits
2 Commits
dacc6cade4
...
1c7255fa72
| Author | SHA1 | Date |
|---|---|---|
|
|
1c7255fa72 | |
|
|
574b8caf49 |
292
src/v2/shop.yaml
292
src/v2/shop.yaml
|
|
@ -1,7 +1,7 @@
|
||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: "TyrePro-API, Shop"
|
title: "TyrePro-API, Shop"
|
||||||
version: "Version 12"
|
version: "Version 13"
|
||||||
servers:
|
servers:
|
||||||
- url: "https://musterreifen.com/api/shop"
|
- url: "https://musterreifen.com/api/shop"
|
||||||
description: "Development server, customers domain"
|
description: "Development server, customers domain"
|
||||||
|
|
@ -71,29 +71,9 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- "General"
|
- "General"
|
||||||
parameters:
|
parameters:
|
||||||
- name: "GuidCart"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
in: "query"
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
required: true
|
- $ref: "#/components/parameters/GuidCart"
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidBranch"
|
|
||||||
description: "Required for providing stock and price information."
|
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidCalculationProfile"
|
|
||||||
description: "If provided, the prices will base on this profile."
|
|
||||||
in: "query"
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -163,29 +143,9 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- "General"
|
- "General"
|
||||||
parameters:
|
parameters:
|
||||||
- name: "GuidCart"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
in: "query"
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
required: true
|
- $ref: "#/components/parameters/GuidCart"
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidBranch"
|
|
||||||
description: "Required for providing stock and price information."
|
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidCalculationProfile"
|
|
||||||
description: "If provided, the prices will base on this profile."
|
|
||||||
in: "query"
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -493,6 +453,7 @@ paths:
|
||||||
- $ref: "#/components/parameters/GuidOffset"
|
- $ref: "#/components/parameters/GuidOffset"
|
||||||
- $ref: "#/components/parameters/GuidHubBoreHole"
|
- $ref: "#/components/parameters/GuidHubBoreHole"
|
||||||
- $ref: "#/components/parameters/GuidManufacturer"
|
- $ref: "#/components/parameters/GuidManufacturer"
|
||||||
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
- name: "Type"
|
- name: "Type"
|
||||||
description: "Provide the types you want to get. If this parameter is not provided, all types will be returned."
|
description: "Provide the types you want to get. If this parameter is not provided, all types will be returned."
|
||||||
in: "query"
|
in: "query"
|
||||||
|
|
@ -514,14 +475,6 @@ paths:
|
||||||
- "Offset"
|
- "Offset"
|
||||||
- "HubBoreHole"
|
- "HubBoreHole"
|
||||||
- "Manufacturer"
|
- "Manufacturer"
|
||||||
- name: "GuidBranch"
|
|
||||||
description: "Required for providing stock and price information."
|
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -594,22 +547,9 @@ paths:
|
||||||
- $ref: "#/components/parameters/GuidManufacturer"
|
- $ref: "#/components/parameters/GuidManufacturer"
|
||||||
- $ref: "#/components/parameters/BinaryObjectContentType"
|
- $ref: "#/components/parameters/BinaryObjectContentType"
|
||||||
- $ref: "#/components/parameters/GuidDeliveryType"
|
- $ref: "#/components/parameters/GuidDeliveryType"
|
||||||
- name: "GuidBranch"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
description: "Required for providing stock and price information."
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
in: "query"
|
- $ref: "#/components/parameters/GuidShopArticleConfig"
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidCalculationProfile"
|
|
||||||
description: "If provided, the prices will base on this profile."
|
|
||||||
in: "query"
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -628,33 +568,6 @@ paths:
|
||||||
$ref: "#/components/responses/GenericError"
|
$ref: "#/components/responses/GenericError"
|
||||||
security:
|
security:
|
||||||
- SessionScheme: []
|
- SessionScheme: []
|
||||||
/ShopArticleInformations:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- "Search"
|
|
||||||
parameters:
|
|
||||||
- $ref: "#/components/parameters/BinaryObjectContentType"
|
|
||||||
- $ref: "#/components/parameters/GuidOnlineService"
|
|
||||||
- name: "GuidShopArticle"
|
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
|
||||||
200:
|
|
||||||
description: "successful operation"
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: "array"
|
|
||||||
items:
|
|
||||||
$ref: "#/components/schemas/ShopArticleInformation"
|
|
||||||
default:
|
|
||||||
$ref: "#/components/responses/GenericError"
|
|
||||||
security:
|
|
||||||
- SessionScheme: []
|
|
||||||
/ShopArticlePairs:
|
/ShopArticlePairs:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -676,22 +589,9 @@ paths:
|
||||||
- $ref: "#/components/parameters/GuidManufacturer"
|
- $ref: "#/components/parameters/GuidManufacturer"
|
||||||
- $ref: "#/components/parameters/BinaryObjectContentType"
|
- $ref: "#/components/parameters/BinaryObjectContentType"
|
||||||
- $ref: "#/components/parameters/GuidDeliveryType"
|
- $ref: "#/components/parameters/GuidDeliveryType"
|
||||||
- name: "GuidBranch"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
description: "Required for providing stock and price information."
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
in: "query"
|
- $ref: "#/components/parameters/GuidShopArticleConfig"
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidCalculationProfile"
|
|
||||||
description: "If provided, the prices will base on this profile."
|
|
||||||
in: "query"
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "SearchTerm2"
|
- name: "SearchTerm2"
|
||||||
in: "query"
|
in: "query"
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -760,23 +660,74 @@ paths:
|
||||||
$ref: "#/components/responses/GenericError"
|
$ref: "#/components/responses/GenericError"
|
||||||
security:
|
security:
|
||||||
- SessionScheme: []
|
- SessionScheme: []
|
||||||
/ShopArticleStockDetails:
|
# ArticleDetails
|
||||||
|
/ShopArticleAccessories:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- "Search"
|
- "ArticleDetails"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/GuidOnlineService"
|
- $ref: "#/components/parameters/GuidOnlineService"
|
||||||
- $ref: "#/components/parameters/GuidDeliveryType"
|
- $ref: "#/components/parameters/GuidDeliveryType"
|
||||||
- name: "GuidShopArticle"
|
- $ref: "#/components/parameters/GuidShopArticle"
|
||||||
in: "query"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
required: true
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
schema:
|
- $ref: "#/components/parameters/GuidShopArticleConfig"
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
headers:
|
||||||
|
Guid-Shop-Article-Config:
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
description: "The ShopArticleConfig which was used to build the response. With this unification the configuration is maybe not precise, but you can show the results in a unified form (columns). Currently it's a response header. In the future we will maybe change this as a field in a response object."
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/ShopArticle"
|
||||||
|
default:
|
||||||
|
$ref: "#/components/responses/GenericError"
|
||||||
|
security:
|
||||||
|
- SessionScheme: []
|
||||||
|
/ShopArticleInformations:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- "ArticleDetails"
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/BinaryObjectContentType"
|
||||||
|
- $ref: "#/components/parameters/GuidOnlineService"
|
||||||
|
- $ref: "#/components/parameters/GuidShopArticle"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "successful operation"
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/ShopArticleInformation"
|
||||||
|
default:
|
||||||
|
$ref: "#/components/responses/GenericError"
|
||||||
|
security:
|
||||||
|
- SessionScheme: []
|
||||||
|
/ShopArticleStockDetails:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- "ArticleDetails"
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/GuidOnlineService"
|
||||||
|
- $ref: "#/components/parameters/GuidDeliveryType"
|
||||||
|
- $ref: "#/components/parameters/GuidShopArticle"
|
||||||
|
- $ref: "#/components/parameters/GuidShopArticleConfig"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "successful operation"
|
||||||
|
headers:
|
||||||
|
Guid-Shop-Article-Config:
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
description: "The ShopArticleConfig which was used to build the response. With this unification the configuration is maybe not precise, but you can show the results in a unified form (columns). Currently it's a response header. In the future we will maybe change this as a field in a response object."
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
@ -1053,22 +1004,8 @@ paths:
|
||||||
- "Cart"
|
- "Cart"
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "#/components/parameters/GuidOnlineService"
|
- $ref: "#/components/parameters/GuidOnlineService"
|
||||||
- name: "GuidBranch"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
description: "Required for providing stock and price information."
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidCalculationProfile"
|
|
||||||
description: "If provided, the prices will base on this profile."
|
|
||||||
in: "query"
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -1187,29 +1124,9 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- "Cart"
|
- "Cart"
|
||||||
parameters:
|
parameters:
|
||||||
- name: "GuidCart"
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
in: "query"
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
required: true
|
- $ref: "#/components/parameters/GuidCart"
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidBranch"
|
|
||||||
description: "Required for providing stock and price information."
|
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
- name: "GuidCalculationProfile"
|
|
||||||
description: "If provided, the prices will base on this profile."
|
|
||||||
in: "query"
|
|
||||||
required: false
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
|
|
@ -1227,13 +1144,7 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- "Cart"
|
- "Cart"
|
||||||
parameters:
|
parameters:
|
||||||
- name: "GuidCart"
|
- $ref: "#/components/parameters/GuidCart"
|
||||||
in: "query"
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: "string"
|
|
||||||
default: null
|
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
|
|
@ -2283,6 +2194,48 @@ components:
|
||||||
type: "string"
|
type: "string"
|
||||||
default: null
|
default: null
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
|
GuidBranch:
|
||||||
|
name: "GuidBranch"
|
||||||
|
description: "Required for providing stock and price information."
|
||||||
|
in: "query"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
|
GuidCalculationProfile:
|
||||||
|
name: "GuidCalculationProfile"
|
||||||
|
description: "If provided, the prices will base on this profile."
|
||||||
|
in: "query"
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
|
GuidCart:
|
||||||
|
name: "GuidCart"
|
||||||
|
in: "query"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
|
GuidShopArticle:
|
||||||
|
name: "GuidShopArticle"
|
||||||
|
in: "query"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
|
GuidShopArticleConfig:
|
||||||
|
name: "GuidShopArticleConfig"
|
||||||
|
in: "query"
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: "string"
|
||||||
|
default: null
|
||||||
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
SearchTerm:
|
SearchTerm:
|
||||||
name: "SearchTerm"
|
name: "SearchTerm"
|
||||||
in: "query"
|
in: "query"
|
||||||
|
|
@ -2314,7 +2267,6 @@ components:
|
||||||
|
|
||||||
# MISSING
|
# MISSING
|
||||||
# GET /Vehicles
|
# GET /Vehicles
|
||||||
# GET /Tubes
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue