New Endpoint /Filters2, to make implementation easier

This commit is contained in:
2026-04-09 14:34:58 +02:00
parent 2960d1bd36
commit eb8630ff24

View File

@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: "TyrePro-API, Shop"
version: "Version 18"
version: "Version 19"
servers:
- url: "https://musterreifen.com/api/shop"
description: "Development server, customers domain"
@@ -525,6 +525,50 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/Filters2:
get:
tags:
- "Search"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
- $ref: "#/components/parameters/GuidBranch"
- $ref: "#/components/parameters/SearchTerm1"
- $ref: "#/components/parameters/SearchTerm2"
- $ref: "#/components/parameters/GuidMaterialType"
- $ref: "#/components/parameters/GuidVehicleType"
- $ref: "#/components/parameters/GuidWidth"
- $ref: "#/components/parameters/GuidSection"
- $ref: "#/components/parameters/GuidDiameter"
- $ref: "#/components/parameters/GuidSpeedIndex"
- $ref: "#/components/parameters/GuidLoadIndex"
- $ref: "#/components/parameters/GuidHoleCount"
- $ref: "#/components/parameters/GuidHoleCircle"
- $ref: "#/components/parameters/GuidOffset"
- $ref: "#/components/parameters/GuidHubBoreHole"
- $ref: "#/components/parameters/GuidManufacturer"
- $ref: "#/components/parameters/GuidMotorcycleManufacturer"
- $ref: "#/components/parameters/GuidMotorcycleDisplacement"
- $ref: "#/components/parameters/GuidMotorcycleModel"
- name: "MaximumNumberOfOptions"
in: "query"
required: false
schema:
type: "integer"
default: 200
example: 200
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/Filter2"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/FilterSuggestions:
get:
tags:
@@ -1422,14 +1466,14 @@ components:
required:
- "Guid"
- "DesiredAmountOfDirectSearch"
- "DesiredAmountOfComfortSearch"
- "DesiredAmountOfCombinationSearch"
- "Columns"
properties:
Guid:
type: "string"
DesiredAmountOfDirectSearch:
type: "number"
DesiredAmountOfComfortSearch:
DesiredAmountOfCombinationSearch:
type: "number"
Columns:
type: "array"
@@ -1586,6 +1630,68 @@ components:
type: "string"
ParameterValue:
type: "string"
Filter2:
type: "object"
required:
- "Type"
- "Designation"
- "Fields"
properties:
Type:
type: "string"
enum:
- "Basic"
- "Detail"
- "Motorcycle"
Designation:
type: "string"
Fields:
type: "array"
items:
type: "object"
required:
- "Type"
- "Designation"
- "ParameterKey"
- "Options"
properties:
Type:
type: "string"
enum:
- "MaterialType"
- "VehicleType"
- "Width"
- "Section"
- "Diameter"
- "SpeedIndex"
- "LoadIndex"
- "HoleCount"
- "HoleCircle"
- "Offset"
- "HubBoreHole"
- "Manufacturer"
- "MotorcycleManufacturer"
- "MotorcycleDisplacement"
- "MotorcycleModel"
Designation:
type: "string"
ParameterKey:
type: "string"
Options:
type: "array"
items:
type: "object"
required:
- "Designation"
- "NumberOfResults"
- "ParameterValue"
properties:
Designation:
type: "string"
NumberOfResults:
type: "integer"
ParameterValue:
type: "string"
ShopArticle:
type: "object"
required:
@@ -2376,8 +2482,8 @@ components:
type: "string"
default: null
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
SearchTerm:
name: "SearchTerm"
SearchTerm1:
name: "SearchTerm1"
in: "query"
required: false
schema: