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
The /api/v1/sources/list endpoint works great, but is an inefficient way to find a source if you're searching for sources(s) with specific name(s). Currently, there is not a way to search for a source by name.
The feature is a nice-to-have to prevent clients from needing to iterate through the whole list of sources to find a source or group of sources.
Describe the solution you’d like
We could use something like:
/api/v1/sources/list?name=myName
or even use a contains:
/api/v1/sources/list?nameContains=myName
Which would return a list of sources the specified name or containing the name. This would reduce the client workload, because they'd no longer need to iterate through the whole list of sources.
Describe the alternative you’ve considered or used
Currently, I'm looping through the whole list to find a source by name.
Are you willing to submit a PR?
Yes. If we decide this is something we want, I'll happily make the PR.
The text was updated successfully, but these errors were encountered:
Tell us about the problem you're trying to solve
The
/api/v1/sources/list
endpoint works great, but is an inefficient way to find a source if you're searching for sources(s) with specific name(s). Currently, there is not a way to search for a source by name.The feature is a nice-to-have to prevent clients from needing to iterate through the whole list of sources to find a source or group of sources.
Describe the solution you’d like
We could use something like:
or even use a contains:
Which would return a list of sources the specified name or containing the name. This would reduce the client workload, because they'd no longer need to iterate through the whole list of sources.
Describe the alternative you’ve considered or used
Currently, I'm looping through the whole list to find a source by name.
Are you willing to submit a PR?
Yes. If we decide this is something we want, I'll happily make the PR.
The text was updated successfully, but these errors were encountered: