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/GuidHubBoreHole"
- $ref: "#/components/parameters/GuidManufacturer"
- $ref: "#/components/parameters/BinaryObjectContentType"
- name: "GuidBranch"
description: "Required for providing stock and price information."
in: "query"
@ -503,6 +504,32 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- 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
/CalculationProfiles:
get:
@ -1122,6 +1149,7 @@ components:
LastFileModificationMoment:
type: "string"
format: "date-time"
readOnly: true
Content:
type: "string"
ContentHashValue:
@ -1362,6 +1390,7 @@ components:
- "AmountPrecisionInNumberOfDecimalPlaces"
- "Stocks"
- "AmountInCart"
- "HasShopArticleInformations"
properties:
Guid:
type: "string"
@ -1414,6 +1443,45 @@ components:
type: "string"
Amount:
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:
type: "object"
required:
@ -1981,7 +2049,6 @@ components:
$ref: "#/components/schemas/GenericError"
# MISSING
# GET /ArticleInformation
# GET /Vehicles
# GET /Tubes
# GET /Campaigns