Skip to content

Commit 6f6cb6f

Browse files
committed
fix: api-catalog.json -> api-catalog as per RFC
Signed-off-by: Shingo OKAWA <[email protected]>
1 parent 48eaecf commit 6f6cb6f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/apicatalog/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
async def fetch_api_catalog(base_url: str):
18-
url = f'{base_url.rstrip("/")}/.well-known/api-catalog.json'
18+
url = f'{base_url.rstrip("/")}/.well-known/api-catalog'
1919
async with httpx.AsyncClient() as client:
2020
response = await client.get(url)
2121
response.raise_for_status()

src/a2a/server/apps/jsonrpc/starlette_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class StarletteBuilder:
255255
This class enables mounting multiple A2AStarletteRouteBuilder instances under
256256
specific paths and generates a complete Starlette application that serves them.
257257
It also collects AgentLinkContext entries and exposes them as an AgentCatalog
258-
document at the standard path /.well-known/api-catalog.json.
258+
document at the standard path /.well-known/api-catalog.
259259
"""
260260

261261
def __init__(self) -> None:
@@ -268,7 +268,7 @@ def __init__(self) -> None:
268268
_mounts: A list of Starlette Mount objects representing route groups
269269
mounted at specific paths.
270270
_catalog_links: A list of AgentLinkContext instances used to generate
271-
the Agent Catalog served at /.well-known/api-catalog.json.
271+
the Agent Catalog served at /.well-known/api-catalog.
272272
"""
273273
self._mounts: list[Mount] = []
274274
self._catalog_links: list[AgentLinkContext] = []
@@ -345,7 +345,7 @@ def mount(
345345
def build(self, **kwargs: Any) -> Starlette:
346346
"""Builds and returns a Starlette application."""
347347
catalog_route = Route(
348-
'/.well-known/api-catalog.json',
348+
'/.well-known/api-catalog',
349349
endpoint=self._handle_get_api_catalog,
350350
methods=['GET'],
351351
name='api_catalog',

0 commit comments

Comments
 (0)