Search sources list by source name
- 主要语言
- Python
- 星标
- 22.1k
- 派生
- 5.3k
- PR 合并指标
- PR 指标待抓取
描述
## 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:
```
/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.
贡献指南
评估
这个 Issue 还没有评估数据。