New Endpoint /Filters2, to make implementation easier
This commit is contained in:
116
src/v2/shop.yaml
116
src/v2/shop.yaml
@@ -1,7 +1,7 @@
|
|||||||
openapi: 3.0.0
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
title: "TyrePro-API, Shop"
|
title: "TyrePro-API, Shop"
|
||||||
version: "Version 18"
|
version: "Version 19"
|
||||||
servers:
|
servers:
|
||||||
- url: "https://musterreifen.com/api/shop"
|
- url: "https://musterreifen.com/api/shop"
|
||||||
description: "Development server, customers domain"
|
description: "Development server, customers domain"
|
||||||
@@ -525,6 +525,50 @@ paths:
|
|||||||
$ref: "#/components/responses/GenericError"
|
$ref: "#/components/responses/GenericError"
|
||||||
security:
|
security:
|
||||||
- SessionScheme: []
|
- 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:
|
/FilterSuggestions:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@@ -1422,14 +1466,14 @@ components:
|
|||||||
required:
|
required:
|
||||||
- "Guid"
|
- "Guid"
|
||||||
- "DesiredAmountOfDirectSearch"
|
- "DesiredAmountOfDirectSearch"
|
||||||
- "DesiredAmountOfComfortSearch"
|
- "DesiredAmountOfCombinationSearch"
|
||||||
- "Columns"
|
- "Columns"
|
||||||
properties:
|
properties:
|
||||||
Guid:
|
Guid:
|
||||||
type: "string"
|
type: "string"
|
||||||
DesiredAmountOfDirectSearch:
|
DesiredAmountOfDirectSearch:
|
||||||
type: "number"
|
type: "number"
|
||||||
DesiredAmountOfComfortSearch:
|
DesiredAmountOfCombinationSearch:
|
||||||
type: "number"
|
type: "number"
|
||||||
Columns:
|
Columns:
|
||||||
type: "array"
|
type: "array"
|
||||||
@@ -1586,6 +1630,68 @@ components:
|
|||||||
type: "string"
|
type: "string"
|
||||||
ParameterValue:
|
ParameterValue:
|
||||||
type: "string"
|
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:
|
ShopArticle:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
@@ -2376,8 +2482,8 @@ components:
|
|||||||
type: "string"
|
type: "string"
|
||||||
default: null
|
default: null
|
||||||
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
example: "ebb89e89-8d25-809e-7814-c53b686ae164"
|
||||||
SearchTerm:
|
SearchTerm1:
|
||||||
name: "SearchTerm"
|
name: "SearchTerm1"
|
||||||
in: "query"
|
in: "query"
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Reference in New Issue
Block a user