I’m trying to setup my services however I seem to have run into a snag.
Example case
Service:
protocol: http
host: api_example_org
port: 80
path: /
name: user-service
Route:
protocols: ["http", "https"]
methods: ["POST"]
hosts: null
paths: /user/save
strip_path: false
I want it to call the upstream service as api_example_org/save, however it calls it as api_example_org/user/save. If I set strip_path to true, then it’ll just do api_example_org which is also undesired. I’ve found a work around, but I don’t think that’s the right way of doing it, as I’d now be defining all my routes my routes would have a 1:1 mapping for all services.
Work around
Service:
protocol: http
host: api_example_org
port: 80
path: /save
name: user-service
Route:
protocols: ["http", "https"]
methods: ["POST"]
hosts: null
paths: /user/save
strip_path: true
Can anyone perhaps point me in the right direction on how to solve this problem? Is it with a plugin? (Transformer plugin doesn’t seem to do this) Is it with the configuration? Is this just simply not supported?
Thanks.
Excuse the url being api_example_org without dots … it was giving me an error saying “new users can’t post more than 2 links”