Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 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
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • 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
  • 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
Managed Service for YDB
Next
Generic HTTP method
© 2025 Direct Cursus Technology L.L.C.