ShopArticleInformation added. I.e. photos and marketing stuff

This commit is contained in:
Nico Kroll 2025-08-21 07:40:44 +02:00
parent 5b9a836c65
commit 791d46ff6b
1 changed files with 68 additions and 1 deletions

View File

@ -461,6 +461,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/BinaryObjectContentType"
- name: "GuidBranch" - name: "GuidBranch"
description: "Required for providing stock and price information." description: "Required for providing stock and price information."
in: "query" in: "query"
@ -503,6 +504,32 @@ paths:
$ref: "#/components/responses/GenericError" $ref: "#/components/responses/GenericError"
security: security:
- SessionScheme: [] - SessionScheme: []
/ShopArticleInformations:
get:
tags:
- "Search"
parameters:
- $ref: "#/components/parameters/BinaryObjectContentType"
- 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: []
# Calculation # Calculation
/CalculationProfiles: /CalculationProfiles:
get: get:
@ -1122,6 +1149,7 @@ components:
LastFileModificationMoment: LastFileModificationMoment:
type: "string" type: "string"
format: "date-time" format: "date-time"
readOnly: true
Content: Content:
type: "string" type: "string"
ContentHashValue: ContentHashValue:
@ -1362,6 +1390,7 @@ components:
- "AmountPrecisionInNumberOfDecimalPlaces" - "AmountPrecisionInNumberOfDecimalPlaces"
- "Stocks" - "Stocks"
- "AmountInCart" - "AmountInCart"
- "HasShopArticleInformations"
properties: properties:
Guid: Guid:
type: "string" type: "string"
@ -1414,6 +1443,45 @@ components:
type: "string" type: "string"
Amount: Amount:
type: "number" type: "number"
HasShopArticleInformations:
type: "boolean"
Thumbnail:
$ref: "#/components/schemas/DbBlob"
ShopArticleInformation:
type: "object"
required:
- "Type"
- "Designation"
- "Informations"
properties:
Type:
type: "string"
enum:
- "ManufacturerLink"
- "Photo"
- "MarketingInfo"
- "TestReport"
- "TechnicalInfo"
- "Certificate"
- "Manual"
Designation:
type: "string"
Informations:
type: "array"
items:
type: "object"
required:
- "Designation"
- "IsUrl"
properties:
Designation:
type: "string"
IsUrl:
type: "string"
Url:
type: "string"
File:
$ref: "#/components/schemas/DbBlob"
MaterialType: MaterialType:
type: "object" type: "object"
required: required:
@ -1981,7 +2049,6 @@ components:
$ref: "#/components/schemas/GenericError" $ref: "#/components/schemas/GenericError"
# MISSING # MISSING
# GET /ArticleInformation
# GET /Vehicles # GET /Vehicles
# GET /Tubes # GET /Tubes
# GET /Campaigns # GET /Campaigns