Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
    • Resource relationships
    • Networking
      • Overview
      • Greedy parameters
      • Generic HTTP method
      • Authorization using a Cloud Functions function
      • Authorization using a JWT
      • WebSocket protocol support
      • Data validation
      • CORS
      • Specification parameterization
      • Canary release
      • Request rate limit
      • Response code replacement
      • Transformation of response and request bodies
    • Quotas and limits
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Extension specification
  • Use cases
  1. Concepts
  2. Specification extensions
  3. Greedy parameters

Greedy parameters

Written by
Yandex Cloud
Updated at April 18, 2025
View in Markdown
  • Extension specification
  • Use cases

OpenAPI Specification 3.0 only allows capturing a single URL segment. To capture multiple segments, add + after the parameter name, such as /prefix/{param+}/suffix.

For example, to capture /static/js/main.js, add /static/{file+} instead of /static/{file} to the specification.

Greedy parameters are compatible with all the x-yc-apigateway-integration extension types.

Extension specificationExtension specification

Specification example:

/static/{file+}:
    get:
      summary: Serve static file from Yandex Cloud Object Storage
      parameters:
        - name: file
          in: path
          required: true
          schema:
            type: string
      x-yc-apigateway-integration:
        type: object_storage
        bucket: my-example-bucket
        object: '{file}'
        error_object: error.html

Use casesUse cases

  • Running a containerized app in Yandex Serverless Containers

Was the article helpful?

Previous
Swagger UI
Next
Generic HTTP method
© 2026 Direct Cursus Technology L.L.C.