Added Motorcycle-Data

This commit is contained in:
Nico Kroll 2025-10-17 09:41:45 +02:00
parent 694582091b
commit 68eca53428
1 changed files with 79 additions and 1 deletions

View File

@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: "TyrePro-API, Shop"
version: "Version 14"
version: "Version 15"
servers:
- url: "https://musterreifen.com/api/shop"
description: "Development server, customers domain"
@ -750,6 +750,47 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
# MotorcycleDetails
/ShopArticleMotorcycleInformations:
get:
tags:
- "MotorcycleDetails"
parameters:
- $ref: "#/components/parameters/BinaryObjectContentType"
- $ref: "#/components/parameters/GuidShopArticle"
- $ref: "#/components/parameters/GuidMotorcycleModel"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/ShopArticleMotorcycleInformation"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/ShopArticleMotorcycles:
get:
tags:
- "MotorcycleDetails"
parameters:
- $ref: "#/components/parameters/GuidShopArticle"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/ShopArticleMotorcycle"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
# Calculation
/CalculationProfiles:
get:
@ -1653,6 +1694,43 @@ components:
DeliveryDate:
type: "string"
format: "date"
ShopArticleMotorcycleInformation:
type: "object"
required:
- "Notes"
properties:
CertificateFile:
$ref: "#/components/schemas/DbBlob"
Notes:
type: "array"
items:
type: "string"
ShopArticleMotorcycle:
type: "object"
required:
- "GuidMotorcycle"
- "Manufacturer"
- "Model"
- "Type"
properties:
GuidMotorcycleModel:
type: "string"
Manufacturer:
type: "string"
Model:
type: "string"
Type:
type: "string"
DisplacementInCcm:
type: "integer"
PowerInKw:
type: "integer"
ConstructionYearFrom:
type: "integer"
ConstructionYearTo:
type: "integer"
AdditionalDesignation:
type: "string"
MaterialType:
type: "object"
required: