How to create Edgemicro that have multi subpath invoke to multi target endpoints?

I have an API with base path /northstar runs by Edgemicro, the API look like

/northstar/service-x

/northstar/service-y

/northstar/service-z

Each API invoke to different target endpoints. But when I deploy to Edgemicro, I only can call to basepath /northstar and other api I got message "Cannot GET /service-x"

Please suggest
0 4 208
4 REPLIES 4

The Edge Microgateway acts as a proxy, it will forward your request (including path suffix, verb, headers, payload, etc) to the target endpoint you've defined.

Have you tried invoking GET <your-target-endpoint>/service-x? What did you get?

Thanks @deboraelkin, sorry if I have not clear my question:

I want to create a API includes following paths:

/northstar/service-x: invoke to http://service-x.com

/northstar/service-y: invoke to http://service-y.com

/northstar/service-z: invoke to http://service-z.com

How can I do that with Edgemicro gateway? Thanks


You will need to create 3 different Microgateway-aware proxies on Edge like this:

  1. Basepath: /northstar/service-x - Target endpoint: http://service-x.com
  2. Basepath: /northstar/service-y - Target endpoint: http://service-y.com
  3. Basepath: /northstar/service-z - Target endpoint: http://service-z.com

See What you need to know about Edge Microgateway-aware proxies for more details

Thank you for your suggesstion