-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathwebsite.yaml
41 lines (40 loc) · 920 Bytes
/
website.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
openapi: "3.0.0"
info:
version: 1.0.0
title: Movies Website
x-yc-apigateway:
service_account_id: ${movies_api_sa_id}
paths:
/:
get:
operationId: index
x-yc-apigateway-integration:
type: object_storage
bucket: ${movies_website_bucket}
object: 'index.html'
/{file+}:
get:
operationId: website
parameters:
- name: file
in: path
required: false
schema:
type: string
x-yc-apigateway-integration:
type: object_storage
bucket: ${movies_website_bucket}
object: '{file}'
/images/{file+}:
get:
operationId: posters
parameters:
- name: file
in: path
required: false
schema:
type: string
x-yc-apigateway-integration:
type: object_storage
bucket: ${movies_images_bucket}
object: '{file}'