Skip to content

Commit 69e7eb9

Browse files
Prem Ramanathanfieryorc
authored andcommitted
Fix api-registry to fetch all services
- API Registry no longer supports enabling apis. To get all the apis, one needs to pass additional filter to fetch the apis. This allows the library to fetch all available apis.
1 parent 3e282d2 commit 69e7eb9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/google/adk/integrations/api_registry/api_registry.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ def __init__(
6161
page_token = None
6262
with httpx.Client() as client:
6363
while True:
64-
params = {}
64+
params = {
65+
# Include all the apis including disabled ones. API registry no longer supports enabling APIs.
66+
"filter": "enabled=false"
67+
}
6568
if page_token:
6669
params["pageToken"] = page_token
6770

0 commit comments

Comments
 (0)