generated from coulomb/repo-seed
search filters and inspection polish
This commit is contained in:
@@ -768,9 +768,20 @@ def get_ability_map(
|
||||
@app.get("/search")
|
||||
def search(
|
||||
q: str,
|
||||
status: str | None = None,
|
||||
language: str | None = None,
|
||||
framework: str | None = None,
|
||||
service: RegistryService = Depends(get_service),
|
||||
) -> list[dict[str, object]]:
|
||||
return [asdict(result) for result in service.search(q)]
|
||||
return [
|
||||
asdict(result)
|
||||
for result in service.search(
|
||||
q,
|
||||
status=status,
|
||||
language=language,
|
||||
framework=framework,
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
@app.get("/abilities")
|
||||
|
||||
Reference in New Issue
Block a user