Job should be able to create its own routes to listen to incoming request
Hello!
Based on a click in the WIDGET I want to change the data that is going to be used in a JOB.
Is there anyway to POST (or any other way) to a JOB so that it can request different data from the RESTAPI?
For instance can I make a JOB that listens and a WIDGET (e.g. with a JQUERY POST) can post to it? Or is there any other way to pass information from the WIDGET to the JOB?
Thanks a lot, Horst
Comments (7)
-
-
reporter Hello!
Thanks for your reply. Could I simply change the atlasboard source (e.g., atlasboard.js) and add a listener that looks at the POSTs of a widget?
Cheers, Horst
-
In simple terms, yes.
-
- changed component to Extensibility
-
Hi Horst,
Can you please share your use case? We will invest some time in extensibility in the near future. Thanks
-
-
- changed status to resolved
In Atlasboard 1.0 you can access the
app
object within the job to add express routes (ideally ononInit
). See the related README - Log in to comment
At the moment jobs don't expose any public routes or socket channels to clients, but this is something we will be looking into for the future.