An example of simple API Gateway with NodeJS and ExpressJs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
826 B

services:
firstService:
port: 3422
base_url: http://localhost
endpoints:
get:
- /user
- /item
- /testing
put:
- /user/*/*/fdf
- /item/*/*
delete:
- /user/
- /item/
post:
- /user/create
- /item/create
secret_key: mainServiceIsRestrictedOnly
secondService:
port: 3400
base_url: http://localhost
endpoints:
get:
- /hello
- /user/*
put:
- /user/hello
delete:
- /user/delete/*
post:
- /user/create
secret_key: mainServiceIsRestrictedOnly