CartArticles as separate endpoint and updating the model
This commit is contained in:
+126
-19
@@ -1,7 +1,7 @@
|
|||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: "TyrePro-API, Shop"
|
title: "TyrePro-API, Shop"
|
||||||
version: "Version 21"
|
version: "Version 22"
|
||||||
servers:
|
servers:
|
||||||
- url: "https://musterreifen.com/api/shop"
|
- url: "https://musterreifen.com/api/shop"
|
||||||
description: "Development server, customers domain"
|
description: "Development server, customers domain"
|
||||||
@@ -1174,6 +1174,86 @@ paths:
|
|||||||
$ref: "#/components/responses/GenericError"
|
$ref: "#/components/responses/GenericError"
|
||||||
security:
|
security:
|
||||||
- SessionScheme: []
|
- SessionScheme: []
|
||||||
|
/CartArticles:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- "Cart"
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/GuidBranch"
|
||||||
|
- $ref: "#/components/parameters/GuidCalculationProfile"
|
||||||
|
- $ref: "#/components/parameters/GuidCart"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "successful operation"
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/CartArticle"
|
||||||
|
default:
|
||||||
|
$ref: "#/components/responses/GenericError"
|
||||||
|
security:
|
||||||
|
- SessionScheme: []
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- "Cart"
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/GuidCart"
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/CartArticle"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "successful operation"
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/CartArticle"
|
||||||
|
default:
|
||||||
|
$ref: "#/components/responses/GenericError"
|
||||||
|
security:
|
||||||
|
- SessionScheme: []
|
||||||
|
/CartArticles/{Guid}:
|
||||||
|
patch:
|
||||||
|
tags:
|
||||||
|
- "Cart"
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/GuidPath"
|
||||||
|
- $ref: "#/components/parameters/_HashValue"
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/CartArticle"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "successful operation"
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/CartArticle"
|
||||||
|
default:
|
||||||
|
$ref: "#/components/responses/GenericError"
|
||||||
|
security:
|
||||||
|
- SessionScheme: []
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- "Cart"
|
||||||
|
parameters:
|
||||||
|
- $ref: "#/components/parameters/GuidPath"
|
||||||
|
- $ref: "#/components/parameters/_HashValue"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: "successful operation"
|
||||||
|
default:
|
||||||
|
$ref: "#/components/responses/GenericError"
|
||||||
|
security:
|
||||||
|
- SessionScheme: []
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
GenericError:
|
GenericError:
|
||||||
@@ -1997,24 +2077,51 @@ components:
|
|||||||
Articles:
|
Articles:
|
||||||
type: "array"
|
type: "array"
|
||||||
items:
|
items:
|
||||||
type: "object"
|
$ref: "#/components/schemas/CartArticle"
|
||||||
required:
|
CartArticle:
|
||||||
- "Guid"
|
type: "object"
|
||||||
- "Designation"
|
required:
|
||||||
- "Amount"
|
- "Guid"
|
||||||
properties:
|
- "GuidCartSet"
|
||||||
Guid:
|
- "GuidShopArticle"
|
||||||
type: "string"
|
- "CreationMoment"
|
||||||
Designation:
|
- "LastModificationMoment"
|
||||||
type: "string"
|
- "Amount"
|
||||||
readOnly: true
|
- "Designation"
|
||||||
Amount:
|
- "PriceNet"
|
||||||
type: "number"
|
- "PriceGross"
|
||||||
PriceNet:
|
properties:
|
||||||
type: "number"
|
Guid:
|
||||||
PriceGross:
|
type: "string"
|
||||||
type: "number"
|
readOnly: true
|
||||||
readOnly: true
|
GuidCartSet:
|
||||||
|
type: "string"
|
||||||
|
readOnly: true
|
||||||
|
GuidShopArticle:
|
||||||
|
type: "string"
|
||||||
|
readOnly: true
|
||||||
|
CreationMoment:
|
||||||
|
type: "string"
|
||||||
|
format: "date-time"
|
||||||
|
readOnly: true
|
||||||
|
LastModificationMoment:
|
||||||
|
type: "string"
|
||||||
|
format: "date-time"
|
||||||
|
readOnly: true
|
||||||
|
Amount:
|
||||||
|
type: "number"
|
||||||
|
Designation:
|
||||||
|
type: "string"
|
||||||
|
readOnly: true
|
||||||
|
PriceNet:
|
||||||
|
type: "number"
|
||||||
|
readOnly: true
|
||||||
|
PriceGross:
|
||||||
|
type: "number"
|
||||||
|
readOnly: true
|
||||||
|
TaxPercentage:
|
||||||
|
type: "number"
|
||||||
|
readOnly: true
|
||||||
Download:
|
Download:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
|
|||||||
Reference in New Issue
Block a user