Providing information about top sold articles

This commit is contained in:
Nico Kroll 2025-08-21 10:28:38 +02:00
parent cb2e4d1d60
commit 741f6c34dd
1 changed files with 40 additions and 1 deletions

View File

@ -117,6 +117,36 @@ paths:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
/TopSoldArticles:
get:
tags:
- "General"
parameters:
- $ref: "#/components/parameters/GuidOnlineService"
- name: "Type"
description: "Provide the types you want to get."
in: "query"
required: true
schema:
type: "string"
enum:
- "Last7Days"
- "Last30Days"
- "Last90Days"
- "Last365Days"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/TopSoldArticle"
default:
$ref: "#/components/responses/GenericError"
security:
- SessionScheme: []
# Settings
/Configs:
get:
@ -1947,6 +1977,16 @@ components:
type: "number"
PriceGross:
type: "number"
TopSoldArticle:
type: "object"
required:
- "GuidShopArticle"
- "NumberOfSells"
properties:
GuidShopArticle:
type: "string"
NumberOfSells:
type: "number"
securitySchemes:
SessionScheme:
type: http
@ -2108,7 +2148,6 @@ components:
# GET /Vehicles
# GET /Tubes
# GET /Campaigns
# GET /TopSoldArticles