forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapis.yaml
More file actions
25 lines (23 loc) · 666 Bytes
/
Copy pathapis.yaml
File metadata and controls
25 lines (23 loc) · 666 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
# yaml-language-server: $schema=https://www.membrane-api.io/v7.1.2.json
# Configures Membrane as an API Gateway for the specified OpenAPI specifications
api:
port: 2000
openapi:
- location: contacts-api-v1.yml
validateRequests: yes
---
# This proxy provides a mock backend implementation for the API.
# Instead of the mock you can use the backend for your API.
api:
port: 3000
path:
uri: /persons
flow:
- response:
- template:
pretty: true
contentType: application/json
src: '{ "success": true }'
- return:
status: 201
# See examples/openapi-validator for a more detailed example