Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.88 KB

README.en.md

File metadata and controls

52 lines (34 loc) · 1.88 KB

Yandex Market API Integration Guide for Sellers

This guide explains how to use the Yandex Market API specification for sellers, designed to automate and streamline interactions with the marketplace.

Generating a Partner API Client

The OpenAPI specification enables you to generate client libraries in various programming languages and frameworks supported by the OpenAPI generator, simplifying your integration with Yandex Market's API.

Obtaining the Specification via Git

Choose one of these two methods:

  1. Clone the repository by executing the following command: git clone https://github.com/yandex-market/yandex-market-partner-api.git.
  2. Download the archive from the repository using the GitHub web interface: click the greenCode button and select Download ZIP rom the dropdown menu.

Installing the OpenAPI Generator via Package Managers

Refer to the generator documentation: https://openapi-generator.tech/docs/installation

Using npm (any OS) npm install @openapitools/openapi-generator-cli -g

Using Homebrew (macOS) brew install openapi-generator

Using Scoop (Windows) scoop install openapi-generator-cli

Generating the Client

Using npm (any OS) npx @openapitools/openapi-generator-cli generate -i <path to openapi.yaml> -g <lang> -o <output path>

Using other package managers openapi-generator generate -i <path to openapi.yaml> -g <generator> -o <output path>

Explanation of placeholders:

  • <generator> means the generator parameter for the chosen language or framework.
  • <output path> means the directory where the generated client code will be saved.
  • <path to openapi.yaml> means the path to the openapi.yaml file of this specification.

Examples of available generators include:

  • go
  • java
  • javascript
  • kotlin
  • php
  • python
  • ruby

For a complete list of generators, visit: https://openapi-generator.tech/docs/generators