Questions tagged [express-gateway]

Express Gateway is a microservices API Gateway built on Express.js.

Express Gateway is a bunch of components which declaratively build around Express to meet the API Gateway use case. Express Gateway’s power is harnessed the rich ecosystem around Express middleware.

118 questions
0
votes
1 answer

Express Gateway Command Line Interface 'eg'

Can some one help me with installing Command Line Interface 'eg' for express gateway. on windows10 machine 64bit.
Niks
  • 110
  • 1
  • 1
  • 10
0
votes
1 answer

Express Gateway

I'm new to node js, I having a issue with express-gateway I have installed node(V 10.0.0), express(V 4.16.3) & express-gateway. I'm getting an error: D:\User\Test\Express-Gateway>eg -version 'eg' is not recognized as an internal or external…
Niks
  • 110
  • 1
  • 1
  • 10
0
votes
1 answer

how to rename endpoints with express gateway?

i am trying to build an api that consists of different services and i want to everything to start with /api/ path. like the following below. i want https://thirdparthy/comments to be routed as /api/comments on express gateway. what is the correct…
johndavedecano
  • 522
  • 5
  • 11
0
votes
1 answer

Express Gateway: 'warn: unable to verify the first certificate' Express.js

I'm brand new to Express Gateway and I'm trying to set up a basic API Gateway to link up some micro services. When I try and proxy to a specific end point https://my-service.net/status (not the real URL), I get this error [EG:policy] warn: unable to…
jkhamler
  • 543
  • 2
  • 6
  • 13
0
votes
1 answer

Does every policy installed must come from a package? (express-gateway)

I read the documentation and I wonder if the only way to install policies (under plugin) is from package? I know that I can create a local package and install it as a file but I wonder if I missed a way to just create my specific policy (for…
0
votes
2 answers

Parsing parameters to express endpoint

I have several express endpoints running which are querying a database. I'm trying to parse parameters in my express-gateway like this: paths: ['/users', '/users/:userId'] The user endpoint is running on localhost and /users does return all users…
TietjeDK
  • 1,167
  • 2
  • 15
  • 43
0
votes
1 answer

Node.js microservices API Gateway with Passport.js

I want to check and validate Json Web Tokens in headers of the incoming requests to the API gateway before passing them to microservices. But the logic for issuing tokens will be in User service behind the Gateway. Is there a way to validate…
0
votes
1 answer

How to setup an Express Gateway proxy with CAS authentication

I'm trying to build a proof-of-concept API gateway to aggregate and centralize several tools exposed via APIs. Express Gateway fits the bill perfectly for my use case, however I'm not entirely sure how to setup the proxy policy with a CAS (or even…
Acapulco
  • 3,373
  • 8
  • 38
  • 51
-1
votes
2 answers

Restricted by CORS policy even after enabling CORS on Express and Express gateway

I'm using Express Gateway to proxy my microservices. I'm hitting the gateway from my react app with Axios. However, the call gets restricted by the CORS Policy. I have enabled CORS in the express gateway and also on my authentication service. I…
-1
votes
1 answer

Changing Express gateway config in runtime

I want to know if we can change the remote express gateway config from some other service(Might or might not be behind the gateway). Is there an API exposed for admins, to enable changing config without having to change the docker image of eg? Our…
Vasanth Kumar
  • 311
  • 1
  • 3
  • 9
-1
votes
2 answers

Express Gateway (key-auth enabled) giving CORs issue when called from front-end application

Issue with description I have my front end application developed and deployed using Angular and nginx respectively. Resource server is developed using No stress NodeJS. Flow is UI -> express gateway -> resource server Whenever trying to call an…
Noopur Tiwari
  • 102
  • 1
  • 1
  • 7
-1
votes
1 answer

docker-compose and express-gateway show bag gateway locally

I want run my express-gateway locally in my pc and have two services for access with my gateway, the problem is that always have the same problem "bad gateway" I test with other public api and work fine, how can do run this locally without this…
CoolLife
  • 1,419
  • 4
  • 17
  • 43
-2
votes
1 answer

Return response according to a common json schema

How can I make standard json keys schema for multiple API service. What if on original response I want to map to specific keys? Maybe adding or removing keys too? I'd like to have same json keys output for all api services for example: api service…
Fabiosoft
  • 1,141
  • 14
  • 32
1 2 3 4 5 6 7
8