You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement ability for an external tool (like cURL) to impersonate a user and make a POST request to the waved web server, and have that request be passed on to the app as-is, so that it can update the UI. Related to #500
I don’t know if this is out of the scope of wave but is it possible to send requests from an external service to a wave app and have the wave app handling it correctly? For example, consider the following snippet:
fromh2o_waveimportsite, ui, Q, main, app, on, handle_on@app('/demo', mode='broadcast')asyncdefserve(q: Q):
q.page['main'] =ui.markdown_card(
box='1 1 -1 -1', title='Demo', content=f'Main page: [Make a request](#request)')
ifq.args['#'] =='request':
q.page['main'].content='Got request'awaitq.page.save()
WoulditbepossiblefromcURLforexampletosendaPOSTrequesttohttps://.../demo#request?
I can give you my specific use case as an example: I have an external web app (grafana) that is sending me POST requests whenever I receive an alert on a value. I would like that POST request to go through the wave app to perform a simple calculation and update the UI of the wave app.
In general it could be interesting to have the possibility for a wave app to accept requests from external entities to allow inter-operation between services
The text was updated successfully, but these errors were encountered:
Implement ability for an external tool (like cURL) to impersonate a user and make a POST request to the waved web server, and have that request be passed on to the app as-is, so that it can update the UI. Related to #500
Via @themutt on Discourse:
The text was updated successfully, but these errors were encountered: