Closed cjea closed 4 years ago
However we end up implementing this I would vote that we use host
instead of url
since url is generally a scheme + host
added a fix, merged the PR, and added docs
https://github.com/LiveRamp/reslang/blob/master/docs/server-blocks.md
please re-open if this doesn't suit your needs.
Description
Reslang does not allow users to define server objects, even though they are generated in both openapi and asyncapi docs. Instead, it creates server objects internally by appending strings to hardcoded hostnames (openapi, asyncapi).
Request
Support server objects in Reslang.
Benefits
api.liveramp.com
vs.api-staging.liveramp.com
)Proposed syntax
Simplest idea would probably be:
If supporting variables/templating is difficult but desired, that could be addressed in the future and wouldn't block this feature.