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
37 lines (35 loc) · 831 Bytes
/
apis.yaml
File metadata and controls
37 lines (35 loc) · 831 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
37
# yaml-language-server: $schema=https://www.membrane-api.io/v7.1.2.json
# Simple JSON Schema validation example
api:
port: 2000
flow:
- request:
- validator:
jsonSchema: schemas/schema2000.json
target:
host: localhost
port: 2002
---
# JSON Schema with schemaMappings for resolving $ref URNs
api:
port: 2001
flow:
- request:
- validator:
jsonSchema: schemas/schema2001.json
schemaMappings:
schemas:
- id: urn:app:base_def
location: schemas/base.json
- id: urn:app:meta_def
location: schemas/meta.json
target:
host: localhost
port: 2002
---
# Backend
api:
port: 2002
flow:
- groovy:
src: Response.ok("<response>good request</response>").build()