docs: generate OAS manually for 2.7.0 (#12158)

* original changes

* changes

* fixes for delete operations

* generate oas
This commit is contained in:
Shahed Nasser
2025-04-11 16:41:39 +03:00
committed by GitHub
parent f8023f419e
commit cd66cdd2bb
1028 changed files with 29859 additions and 286 deletions

View File

@@ -555,11 +555,51 @@ get:
items:
type: object
title: $or
- name: currency_code
in: query
required: false
schema:
oneOf:
- type: string
title: currency_code
description: >-
Filter by a currency code. The promotions are filtered based on
their application method's currency code.
- type: array
description: >-
Filter by currency codes. The promotions are filtered based on
their application method's currency code.
items:
type: string
title: currency_code
description: A currency code.
- name: application_method_type
in: query
required: false
schema:
oneOf:
- type: string
title: application_method_type
description: >-
Filter by an application method type. The promotions are filtered
based on their application method's type.
- type: array
description: >-
Filter by application method types. The promotions are filtered
based on their application method's type.
items:
type: string
title: application_method_type
description: An application method type.
security:
- api_token: []
- cookie_auth: []
- jwt_token: []
x-codeSamples:
- lang: JavaScript
label: JS SDK
source:
$ref: ../code_samples/JavaScript/admin_promotions/get.js
- lang: Shell
label: cURL
source:
@@ -983,6 +1023,10 @@ post:
`additional_data` parameter.
description: The promotion's details.
x-codeSamples:
- lang: JavaScript
label: JS SDK
source:
$ref: ../code_samples/JavaScript/admin_promotions/post.js
- lang: Shell
label: cURL
source: