-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-petstore.yaml
More file actions
36 lines (33 loc) · 911 Bytes
/
openapi-petstore.yaml
File metadata and controls
36 lines (33 loc) · 911 Bytes
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
requires:
plugins:
- name: workflow-plugin-http
- name: workflow-plugin-openapi
modules:
# HTTP server on port 8095
- name: petstore-server
type: http.server
config:
address: ":8095"
# HTTP router — the OpenAPI module registers routes onto this
- name: petstore-router
type: http.router
dependsOn:
- petstore-server
# OpenAPI module — parses the spec and generates routes
- name: pet-store-api
type: openapi
dependsOn:
- petstore-router
config:
# NOTE: spec_file is resolved relative to this config file's directory
# via the _config_dir mechanism in config.ResolvePathInConfig.
spec_file: specs/petstore.yaml
base_path: /api/v1
router: petstore-router
validation:
request: true
response: true
response_action: warn
swagger_ui:
enabled: true
path: /docs