Version 8

This commit is contained in:
Nico Kroll 2024-09-03 07:59:09 +02:00
parent a5aaa63f8a
commit 8b6aa36d36
1 changed files with 41 additions and 8 deletions

View File

@ -1,7 +1,7 @@
openapi: 3.0.0 openapi: 3.0.0
info: info:
title: "TyrePro-API, Shop" title: "TyrePro-API, Shop"
version: "Version 7" version: "Version 8"
servers: servers:
- url: "https://musterreifen.com/api/shop" - url: "https://musterreifen.com/api/shop"
description: "Development server, customers domain" description: "Development server, customers domain"
@ -485,6 +485,11 @@ paths:
responses: responses:
200: 200:
description: "successful operation" description: "successful operation"
headers:
GuidShopArticleConfig:
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:
@ -1188,12 +1193,9 @@ components:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "Designation"
properties: properties:
Guid: Guid:
type: "string" type: "string"
Designation:
type: "string"
Columns: Columns:
type: "array" type: "array"
items: items:
@ -1323,7 +1325,7 @@ components:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "GuidTableConfig" - "GuidShopArticleConfig"
- "Details" - "Details"
- "AmountPrecisionInNumberOfDecimalPlaces" - "AmountPrecisionInNumberOfDecimalPlaces"
- "Stocks" - "Stocks"
@ -1331,7 +1333,7 @@ components:
properties: properties:
Guid: Guid:
type: "string" type: "string"
GuidTableConfig: GuidShopArticleConfig:
type: "string" type: "string"
Details: Details:
type: "array" type: "array"
@ -1410,21 +1412,27 @@ components:
properties: properties:
Guid: Guid:
type: "string" type: "string"
readOnly: true
Designation: Designation:
type: "string" type: "string"
SequenceNumber: SequenceNumber:
type: "integer" type: "integer"
ProvidedByShopOperator: ProvidedByShopOperator:
type: "boolean" type: "boolean"
readOnly: true
Calculation: Calculation:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "GuidCalculationProfile"
- "Designation" - "Designation"
- "SequenceNumber" - "SequenceNumber"
properties: properties:
Guid: Guid:
type: "string" type: "string"
readOnly: true
GuidCalculationProfile:
type: "string"
Designation: Designation:
type: "string" type: "string"
SequenceNumber: SequenceNumber:
@ -1445,6 +1453,7 @@ components:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "GuidCalculation"
- "SequenceNumber" - "SequenceNumber"
- "NetPrice" - "NetPrice"
- "Mode" - "Mode"
@ -1453,6 +1462,9 @@ components:
properties: properties:
Guid: Guid:
type: "string" type: "string"
readOnly: true
GuidCalculation:
type: "string"
SequenceNumber: SequenceNumber:
type: "integer" type: "integer"
PriceNet: PriceNet:
@ -1570,6 +1582,7 @@ components:
properties: properties:
Guid: Guid:
type: "string" type: "string"
readOnly: true
SequenceNumber: SequenceNumber:
type: "integer" type: "integer"
Designation: Designation:
@ -1595,6 +1608,7 @@ components:
properties: properties:
Guid: Guid:
type: "string" type: "string"
readOnly: true
Type: Type:
type: "string" type: "string"
readOnly: true readOnly: true
@ -1609,6 +1623,7 @@ components:
required: required:
- "Guid" - "Guid"
- "CreationMoment" - "CreationMoment"
- "LastModificationMoment"
- "SequenceNumber" - "SequenceNumber"
- "Comment" - "Comment"
properties: properties:
@ -1619,6 +1634,10 @@ components:
type: "string" type: "string"
format: "date-time" format: "date-time"
readOnly: true readOnly: true
LastModificationMoment:
type: "string"
format: "date-time"
readOnly: true
Designation: Designation:
type: "string" type: "string"
Comment: Comment:
@ -1633,11 +1652,24 @@ components:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "GuidCart"
- "CreationMoment"
- "LastModificationMoment"
- "Articles" - "Articles"
properties: properties:
Guid: Guid:
type: "string" type: "string"
readOnly: true readOnly: true
GuidCart:
type: "string"
CreationMoment:
type: "string"
format: "date-time"
readOnly: true
LastModificationMoment:
type: "string"
format: "date-time"
readOnly: true
Comment: Comment:
type: "string" type: "string"
Articles: Articles:
@ -1646,13 +1678,14 @@ components:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "GuidArticle" - "Designation"
- "Amount" - "Amount"
properties: properties:
Guid: Guid:
type: "string" type: "string"
GuidArticle: Designation:
type: "string" type: "string"
readOnly: true
Amount: Amount:
type: "number" type: "number"
PriceNet: PriceNet: