-
Notifications
You must be signed in to change notification settings - Fork 138
/
proxies.xml
31 lines (25 loc) · 1.05 KB
/
proxies.xml
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
<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">
<router>
<!-- Configures Membrane as an API Gateway for the specified OpenAPI specifications -->
<api port="2000">
<openapi location="contacts-api-v1.yml" validateRequests="yes"/>
</api>
<!-- 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>/persons</path>
<response>
<template pretty="true" contentType="application/json">
{ "success": true }
</template>
</response>
<return statusCode="201"/>
</api>
<!-- See examples/openapi-validator for a more detailed example -->
</router>
</spring:beans>