Community Conundrum 25: Feature Visualization is now live! Read More

API Node - Getting Request headers

Level 3
API Node - Getting Request headers

Hi All, 

I have built an Api and deployed into separate api-node. everything works fine but I would like to get the requester headers (Query Headers or body) to verify some values before proceed.

Could you please support in this

Thanks 

 

0 Kudos
4 Replies
Dataiker
Dataiker
Hi, The documentation of the API node user API is https://doc.dataiku.com/dss/api/7.0/apinode-user/. What specifically would you like to verify? Is it about how to send a request to the API node? Or to add custom logic to a prediction endpoint? Cheers, Alex
0 Kudos
Level 3
Author

Hi Alex,  

No,  I would like to get information about who is calling my api node,  the brwoser information etc .. (Please see the attachment)

def api_py_function():
 #adding logic to get the request headers
 #Something like this  get_auth_info_from_browser_headers(request_headers)

  return "Works fine"
0 Kudos
Dataiker
Dataiker

Hi,

Thanks for explaining your objective.

Unfortunately, this is not possible. I have passed your request to our product team.

Cheers,

Alex

0 Kudos
Level 3
Author

Thank Alex, please let us know if you decide to add this feature.

Kind regards 

Bader

0 Kudos
Labels (4)