Providing information about top sold articles
This commit is contained in:
parent
cb2e4d1d60
commit
741f6c34dd
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue