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
35 lines (32 loc) · 709 Bytes
/
apis.yaml
File metadata and controls
35 lines (32 loc) · 709 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
# yaml-language-server: $schema=https://www.membrane-api.io/v7.1.2.json
api:
port: 2000
flow:
- request:
- if:
test: //order[@express='yes']
language: xpath
flow:
# Overwrite the target URL
- destination:
url: internal://express
target:
url: internal://normal
---
# An internal API is like a function or subroutine for an API.
# For an internal API a port is not needed
internal:
name: express
flow:
- static:
src: Express processing!
- return:
status: 200
---
internal:
name: normal
flow:
- static:
src: Normal processing!
- return:
status: 200