Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

NativeRest - CallRestService header-attribute 'ApiKey' gets transformed to apikey

$
0
0
On our native app we trigger a rest-call clientside using module NativeRest, javascript CallRestService. We need to send a header along for authentication of the calling scanner/phone. We create the header in the nanoflow like this: '{"Content-Type": "application/json", "ApiKey":"'+@ConnectorToMyPublishingApp.ApikeyMobileScanners+'"}' And we feed that header to the javascript call: What happens is that the attribute-name ‘ApiKey’ gets transformed to smallcaps: 'apikey’. This is not accepted by the publishing app. When we trigger the same call via SoapUI, it works like a charm. We tried a number of ways to write the name. 'Api-Key’ gives apiKey, '-Api-Key’ does not get accepted at all. Using Mendix 8.14.1    

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>