-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Search API to fetch all the workflows present #124
Comments
Perhaps an array of objects instead a collection of arrays for the get response:
|
I have seen many other plugins follow the pattern here: The response should be our entire workflow/template object which is in the GC. this is easy to do as we already have the data model for this object, we just return an array of those. User can add a filter potentially on there search if they just want to get the id's back. Are there other cases in opensearch where just IDs are returned? There are also plugins like security who have an explicitly
|
@amitgalitz based on your comment above. Created 2 APIs for search:
The request and response has been updated in the description |
This looks good to me, we should make sure to remember to test this when we implement the encryption on credentials so they are encrypted on search results back. Additionally do you think having a GET API for a specific workflow would be a different issue. For example: |
The URI that our API's use currently is
|
@joshpalis |
yeah just to avoid confusion if anyone reads the issue :) |
Is your feature request related to a problem?
Currently, we don't have a way to track all the workflow IDs being created through execute API. An API is needed to fetch the list of workflow IDs created along with the name of it. Later, status API can be used to get the related information of the specific workflow.
What solution would you like?
Proposed APIs:
GET _plugins/_flow_framework/workflow/_search
POST _plugins/_flow_framework/workflow/_search
Request:
Response:
The text was updated successfully, but these errors were encountered: