Greedy parameters
Written by
Updated at August 29, 2024
OpenAPI Specification 3.0+
after the parameter name, such as /prefix/{param+}/suffix
.
For example, to capture /static/js/main.js
, add /static/{file+}
to the specification instead of /static/{file}
.
Greedy parameters are compatible with all x-yc-apigateway-integration extension types.
Extension 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