Parametrizable Custom HTTP header Key (REST) - Mendix Forum

Parametrizable Custom HTTP header Key (REST)


It should be possible to parametrize the key of a custom HTTP header to increase flexibility and configurability.



Edit: it would be handy to be able to add more custom headers at runtime in case they were not known yet during design time.

2 answers

With OData you can add and pass on eg. an X-APIKey as header from a configurable list. You can change this at runtime. For the REST service, you have to configure this during the design time. You have to know which headers you will need in advance and will potentially need to go through REST calls to adjust them in Studio Pro. At the moment, you can just set a value from a configuration dynamically. Wouldn't it make more sense to be able to configure Key-Value pairs for a header entry?


Can you give an example use case how you would use this, e.g., a public api that requires this?