Search endpoint for a list of workflow IDs? #3019
Replies: 3 comments
-
@demichej Are you looking for an endpoint to bulk fetch workflows given a list of workflow ids? |
Beta Was this translation helpful? Give feedback.
-
@apanicker-nflx yeah that's exactly what I was thinking, a bulk fetch endpoint with a list of workflow IDs. I think I would prefer to be "strict" in that if there is a single workflow ID that is given that doesn't exist in the system, we'd send back an error. I could also envision having another endpoint that could return any that are found, the client would then have to be responsible for dealing with missing workflows. But yeah my initial impression is to just be strict. |
Beta Was this translation helpful? Give feedback.
-
@demichej A strict implementation sounds good. I would also recommend setting constraints and validating on the number of workflow ids that are allowed in the list. Please feel free to submit a PR with your implementation. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I took a look in WorkflowResource, but I'm not seeing an endpoint to get a List by workflowIds. I was thinking of adding something like that, but wanted to see if something existed already that I am missing.
I see the getWorkflows with a list of correlationIds, but the problem for me there is that all the correlation IDs must exist under the same workflowName, which doesnt' fit what I have. (I have different workflow names for the correlation ids)
Beta Was this translation helpful? Give feedback.
All reactions