Compare commits

...

5 Commits

4 changed files with 227 additions and 34 deletions

View File

@@ -27,3 +27,4 @@ https://docs.hetzner.cloud/
https://opensource.zalando.com/restful-api-guidelines
https://kubernetes.io/docs/reference/using-api/api-concepts
https://docs.stripe.com/api/prices
https://developer.clickup.com/docs/authentication

View File

@@ -4193,6 +4193,7 @@ components:
- "GuidOnlineSchedulerService"
- "GuidBranch"
- "IsDefault"
- "Hints"
properties:
Guid:
type: "string"
@@ -4202,6 +4203,22 @@ components:
type: "string"
IsDefault:
type: "string"
Hints:
type: "array"
items:
type: "object"
required:
- "AttentionLevel"
- "Hint"
properties:
AttentionLevel:
type: "string"
enum:
- "Low"
- "Mid"
- "High"
Hint:
type: "string"
_HashValue:
$ref: "#/components/schemas/_HashValue"
example:

View File

@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: "TyrePro-API, Shop"
version: "Version 16"
version: "Version 19"
servers:
- url: "https://musterreifen.com/api/shop"
description: "Development server, customers domain"
@@ -500,6 +500,62 @@ paths:
- "HoleCircle2"
- "Offset2"
- "HubBoreHole2"
- name: "MaximumNumberOfOptions"
in: "query"
required: false
schema:
type: "integer"
default: 1000
example: 1000
responses:
200:
description: "successful operation"
headers:
Developer-Hint:
schema:
type: "string"
description: "To prevent data intense calls, we may manipulate your request. If so, you get a hint here, what exactly we've done."
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/Filter"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/Filters2:
get:
tags:
- "Search"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
- $ref: "#/components/parameters/GuidBranch"
- $ref: "#/components/parameters/SearchTerm1"
- $ref: "#/components/parameters/SearchTerm2"
- $ref: "#/components/parameters/GuidMaterialType"
- $ref: "#/components/parameters/GuidVehicleType"
- $ref: "#/components/parameters/GuidWidth"
- $ref: "#/components/parameters/GuidSection"
- $ref: "#/components/parameters/GuidDiameter"
- $ref: "#/components/parameters/GuidSpeedIndex"
- $ref: "#/components/parameters/GuidLoadIndex"
- $ref: "#/components/parameters/GuidHoleCount"
- $ref: "#/components/parameters/GuidHoleCircle"
- $ref: "#/components/parameters/GuidOffset"
- $ref: "#/components/parameters/GuidHubBoreHole"
- $ref: "#/components/parameters/GuidManufacturer"
- $ref: "#/components/parameters/GuidMotorcycleManufacturer"
- $ref: "#/components/parameters/GuidMotorcycleDisplacement"
- $ref: "#/components/parameters/GuidMotorcycleModel"
- name: "MaximumNumberOfOptions"
in: "query"
required: false
schema:
type: "integer"
default: 200
example: 200
responses:
200:
description: "successful operation"
@@ -508,7 +564,7 @@ paths:
schema:
type: "array"
items:
$ref: "#/components/schemas/Filter"
$ref: "#/components/schemas/Filter2"
default:
$ref: "#/components/responses/GenericError"
security:
@@ -666,11 +722,6 @@ paths:
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:
application/json:
schema:
@@ -714,11 +765,6 @@ paths:
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:
application/json:
schema:
@@ -738,6 +784,13 @@ paths:
- $ref: "#/components/parameters/BinaryObjectContentType"
- $ref: "#/components/parameters/GuidShopArticle"
- $ref: "#/components/parameters/GuidMotorcycleModel"
- name: "GuidShopArticle2"
in: "query"
required: false
schema:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
responses:
200:
description: "successful operation"
@@ -1335,6 +1388,7 @@ components:
- "Designation"
- "Number"
- "IsActive"
- "DefaultDeliveryDate"
properties:
Guid:
type: "string"
@@ -1356,6 +1410,9 @@ components:
type: "number"
Longitude:
type: "number"
DefaultDeliveryDate:
type: "string"
format: "date"
example:
Guid: "ebb89e89-8d25-809e-7814-c53b686ae164"
Designation: "Zentrale"
@@ -1408,9 +1465,16 @@ components:
type: "object"
required:
- "Guid"
- "DesiredAmountOfDirectSearch"
- "DesiredAmountOfCombinationSearch"
- "Columns"
properties:
Guid:
type: "string"
DesiredAmountOfDirectSearch:
type: "number"
DesiredAmountOfCombinationSearch:
type: "number"
Columns:
type: "array"
items:
@@ -1474,34 +1538,44 @@ components:
type: "string"
GuidVehicleType:
type: "string"
Types:
TypeGroups:
type: "array"
items:
type: "object"
required:
- "Designation"
- "Type"
- "Types"
properties:
Designation:
type: "string"
Type:
type: "string"
enum:
- "MaterialType"
- "VehicleType"
- "Width"
- "Section"
- "Diameter"
- "SpeedIndex"
- "LoadIndex"
- "HoleCount"
- "HoleCircle"
- "Offset"
- "HubBoreHole"
- "Manufacturer"
- "MotorcycleManufacturer"
- "MotorcycleDisplacement"
- "MotorcycleModel"
Types:
type: "array"
items:
type: "object"
required:
- "Designation"
- "Type"
properties:
Designation:
type: "string"
Type:
type: "string"
enum:
- "MaterialType"
- "VehicleType"
- "Width"
- "Section"
- "Diameter"
- "SpeedIndex"
- "LoadIndex"
- "HoleCount"
- "HoleCircle"
- "Offset"
- "HubBoreHole"
- "Manufacturer"
- "MotorcycleManufacturer"
- "MotorcycleDisplacement"
- "MotorcycleModel"
Filter:
type: "object"
required:
@@ -1556,6 +1630,68 @@ components:
type: "string"
ParameterValue:
type: "string"
Filter2:
type: "object"
required:
- "Type"
- "Designation"
- "Fields"
properties:
Type:
type: "string"
enum:
- "Basic"
- "Detail"
- "Motorcycle"
Designation:
type: "string"
Fields:
type: "array"
items:
type: "object"
required:
- "Type"
- "Designation"
- "ParameterKey"
- "Options"
properties:
Type:
type: "string"
enum:
- "MaterialType"
- "VehicleType"
- "Width"
- "Section"
- "Diameter"
- "SpeedIndex"
- "LoadIndex"
- "HoleCount"
- "HoleCircle"
- "Offset"
- "HubBoreHole"
- "Manufacturer"
- "MotorcycleManufacturer"
- "MotorcycleDisplacement"
- "MotorcycleModel"
Designation:
type: "string"
ParameterKey:
type: "string"
Options:
type: "array"
items:
type: "object"
required:
- "Designation"
- "NumberOfResults"
- "ParameterValue"
properties:
Designation:
type: "string"
NumberOfResults:
type: "integer"
ParameterValue:
type: "string"
ShopArticle:
type: "object"
required:
@@ -1861,6 +1997,7 @@ components:
- "Guid"
- "GuidCurrency"
- "DefaultAmount"
- "DefaultDeliveryDate"
- "OneClickPurchase"
- "FullTaxPercentage"
- "ReducedTaxPercentage"
@@ -1886,6 +2023,10 @@ components:
DefaultAmount:
type: "number"
readOnly: true
DefaultDeliveryDate:
type: "string"
format: "date"
readOnly: true
OneClickPurchase:
type: "boolean"
readOnly: true
@@ -2341,8 +2482,8 @@ components:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
SearchTerm:
name: "SearchTerm"
SearchTerm1:
name: "SearchTerm1"
in: "query"
required: false
schema:

View File

@@ -167,6 +167,23 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/CustomerStorages/{Guid}/custommethods/Predecessor:
get:
tags:
- "TPMS / customer storage"
parameters:
- $ref: "#/components/parameters/GuidPathParameter"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
$ref: "#/components/schemas/CustomerStorage"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/CustomerStorages/{Guid}/custommethods/Rearrange:
post:
tags:
@@ -184,6 +201,23 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/CustomerStorages/{Guid}/custommethods/Successor:
get:
tags:
- "TPMS / customer storage"
parameters:
- $ref: "#/components/parameters/GuidPathParameter"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
$ref: "#/components/schemas/CustomerStorage"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/CustomerStoragePositions/{Guid}:
get:
tags: