apazureck / odatatools

OData Tools for vscode
24 stars 12 forks source link

Customer Headers in VS Code #17

Closed FlippieCoetser closed 6 years ago

FlippieCoetser commented 7 years ago

How can add a customer header when using the plugin in VS Code. The get entity interface... option when pressing crt + shift + p only take the odata endpoint url. I need to add a access token to the Authorization tag in the header to read the odata endpoint.

apazureck commented 7 years ago

Hi,

Sadly, you can't. But I see your need. I'll implement that this week (possibly as workspace setting).

apazureck commented 7 years ago

Hi @FlippieCoetser,

Sorry for not implementing the feature so far. I had very limited time due to familiy issues to take care of my projects. I hope I can get it done the next weeks, but I sadly cannot promise anything right now.

apazureck commented 7 years ago

Hi @FlippieCoetser,

I implemented your request in Commit ae038dbd37a2e4ddf0e9c1ea3ba36074b415e432. I was not able to really test it. I am using request for now, which allows quite a lot of customization. You can edit that in the header of the generated proxy/interface. See the wiki for more information.

Please check if it works for you and give me some feedback.

Cheers,

Andreas

apazureck commented 6 years ago

@FlippieCoetser,

I guess it works. At least my colleague had no issues so far using custom headers.

FlippieCoetser commented 6 years ago

@apazureck thanks for the Implementation!!!