diff --git a/aries_cloudagent/messaging/discovery/message_types.py b/aries_cloudagent/messaging/discovery/message_types.py index 5b31a5603f..7ef3102649 100644 --- a/aries_cloudagent/messaging/discovery/message_types.py +++ b/aries_cloudagent/messaging/discovery/message_types.py @@ -1,6 +1,6 @@ -"""Message type identifiers for Protocol Discovery.""" +"""Message type identifiers for Feature Discovery.""" -MESSAGE_FAMILY = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/protocol-discovery/1.0" +MESSAGE_FAMILY = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/discover-features/1.0" DISCLOSE = f"{MESSAGE_FAMILY}/disclose" QUERY = f"{MESSAGE_FAMILY}/query" diff --git a/aries_cloudagent/messaging/discovery/messages/disclose.py b/aries_cloudagent/messaging/discovery/messages/disclose.py index 6fb6b80dc7..f931f6b496 100644 --- a/aries_cloudagent/messaging/discovery/messages/disclose.py +++ b/aries_cloudagent/messaging/discovery/messages/disclose.py @@ -1,4 +1,4 @@ -"""Represents a protocol discovery disclosure message.""" +"""Represents a feature discovery disclosure message.""" from typing import Mapping @@ -13,7 +13,7 @@ class Disclose(AgentMessage): - """Represents a protocol discovery disclosure, the response to a query message.""" + """Represents a feature discovery disclosure, the response to a query message.""" class Meta: """Disclose metadata.""" diff --git a/aries_cloudagent/messaging/discovery/messages/query.py b/aries_cloudagent/messaging/discovery/messages/query.py index b4f9204211..1a1958a9c6 100644 --- a/aries_cloudagent/messaging/discovery/messages/query.py +++ b/aries_cloudagent/messaging/discovery/messages/query.py @@ -1,4 +1,4 @@ -"""Represents a protocol discovery query message.""" +"""Represents a feature discovery query message.""" from marshmallow import fields @@ -11,7 +11,7 @@ class Query(AgentMessage): - """Represents a protocol discovery query. + """Represents a feature discovery query. Used for inspecting what message types are supported by the agent. """ diff --git a/aries_cloudagent/messaging/discovery/routes.py b/aries_cloudagent/messaging/discovery/routes.py index 653a9f9f41..308324872b 100644 --- a/aries_cloudagent/messaging/discovery/routes.py +++ b/aries_cloudagent/messaging/discovery/routes.py @@ -1,4 +1,4 @@ -"""Protocol discovery admin routes.""" +"""Feature discovery admin routes.""" from aiohttp import web from aiohttp_apispec import docs, response_schema @@ -9,14 +9,14 @@ class QueryResultSchema(Schema): - """Result schema for connection list.""" + """Result schema for the protocol list.""" results = fields.Dict(fields.Str(), fields.Dict()) @docs( tags=["server"], - summary="Query supported protocols", + summary="Query supported features", parameters=[ { "name": "query", @@ -27,7 +27,7 @@ class QueryResultSchema(Schema): ], ) @response_schema(QueryResultSchema(), 200) -async def query_protocols(request: web.BaseRequest): +async def query_features(request: web.BaseRequest): """ Request handler for inspecting supported protocols. @@ -48,4 +48,4 @@ async def query_protocols(request: web.BaseRequest): async def register(app: web.Application): """Register routes.""" - app.add_routes([web.get("/protocols", query_protocols)]) + app.add_routes([web.get("/features", query_features)])