docs: update api-reference project for v2 (#7307)

* remove everything v1 and make v2 default

* move main v2 rewrites to book

* move rewrites to book + other fixes
This commit is contained in:
Shahed Nasser
2024-05-16 10:02:35 +03:00
committed by GitHub
parent 9b1998b9b2
commit 22f30f54fd
2148 changed files with 8965 additions and 140283 deletions

View File

@@ -0,0 +1,49 @@
type: object
description: SUMMARY
x-schemaName: AdminPostPromotionsPromotionReq
properties:
code:
type: string
title: code
description: The promotion's code.
is_automatic:
type: boolean
title: is_automatic
description: The promotion's is automatic.
type: {}
campaign_id:
type: string
title: campaign_id
description: The promotion's campaign id.
campaign:
$ref: ./AdminPostCampaignsReq.yaml
application_method:
$ref: ./ApplicationMethodsMethodPostReq.yaml
rules:
type: array
description: The promotion's rules.
items:
type: object
description: The rule's rules.
x-schemaName: PromotionRule
required:
- operator
- attribute
- values
properties:
operator: {}
description:
type: string
title: description
description: The rule's description.
attribute:
type: string
title: attribute
description: The rule's attribute.
values:
type: array
description: The rule's values.
items:
type: string
title: values
description: The value's values.