Refactoring a little bit

This commit is contained in:
Nico Kroll 2024-08-23 15:12:24 +02:00
parent 41ef94f527
commit a49185ea21
1 changed files with 29 additions and 37 deletions

View File

@ -1,7 +1,7 @@
openapi: 3.0.0 openapi: 3.0.0
info: info:
title: "TyrePro-API, Shop" title: "TyrePro-API, Shop"
version: "Version 6" version: "Version 7"
servers: servers:
- url: "https://musterreifen.com/api/shop" - url: "https://musterreifen.com/api/shop"
description: "Development server, customers domain" description: "Development server, customers domain"
@ -340,25 +340,6 @@ paths:
security: security:
- SessionScheme: [] - SessionScheme: []
# Search # Search
/TableConfigs:
get:
tags:
- "Search"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/TableConfig"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/FilterSuggestions: /FilterSuggestions:
get: get:
tags: tags:
@ -439,7 +420,26 @@ paths:
$ref: "#/components/responses/GenericError" $ref: "#/components/responses/GenericError"
security: security:
- SessionScheme: [] - SessionScheme: []
/Articles: /ShopArticleConfigs:
get:
tags:
- "Search"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/ShopArticleConfig"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/ShopArticles:
get: get:
tags: tags:
- "Search" - "Search"
@ -490,7 +490,7 @@ paths:
schema: schema:
type: "array" type: "array"
items: items:
$ref: "#/components/schemas/Article" $ref: "#/components/schemas/ShopArticle"
default: default:
$ref: "#/components/responses/GenericError" $ref: "#/components/responses/GenericError"
security: security:
@ -1184,14 +1184,17 @@ components:
FaxNumber: null FaxNumber: null
Latitude: 12.34 Latitude: 12.34
Longitude: 12.34 Longitude: 12.34
TableConfig: ShopArticleConfig:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"
- "Designation"
properties: properties:
Guid: Guid:
type: "string" type: "string"
DetailColumns: Designation:
type: "string"
Columns:
type: "array" type: "array"
items: items:
type: "object" type: "object"
@ -1213,18 +1216,7 @@ components:
- "boolean" - "boolean"
- "date" - "date"
- "dateTime" - "dateTime"
StockColumns: - "stock"
type: "array"
items:
type: "object"
required:
- "Designation"
- "FieldName"
properties:
Designation:
type: "string"
FieldName:
type: "string"
Module: Module:
type: "object" type: "object"
required: required:
@ -1327,7 +1319,7 @@ components:
type: "string" type: "string"
ParameterValue: ParameterValue:
type: "string" type: "string"
Article: ShopArticle:
type: "object" type: "object"
required: required:
- "Guid" - "Guid"