diff --git a/docs/source/examples.delete_artifact.rst b/docs/source/examples.delete_artifact.rst index f476578..88e7258 100644 --- a/docs/source/examples.delete_artifact.rst +++ b/docs/source/examples.delete_artifact.rst @@ -7,4 +7,4 @@ Delete artifact .. literalinclude:: ../../examples/delete_artifact.py :language: python :linenos: - :lines: 29- \ No newline at end of file + :lines: 31- \ No newline at end of file diff --git a/docs/source/examples.edit_artifact.rst b/docs/source/examples.edit_artifact.rst index 9003a5c..a7fe15d 100644 --- a/docs/source/examples.edit_artifact.rst +++ b/docs/source/examples.edit_artifact.rst @@ -7,4 +7,4 @@ Edit artifact .. literalinclude:: ../../examples/edit_artifact.py :language: python :linenos: - :lines: 33- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/source/examples.get_metadata_broker_descriptions.rst b/docs/source/examples.get_metadata_broker_descriptions.rst index db25520..6383997 100644 --- a/docs/source/examples.get_metadata_broker_descriptions.rst +++ b/docs/source/examples.get_metadata_broker_descriptions.rst @@ -8,4 +8,4 @@ Get self-descriptions from connectors registered in the Metadata Broker .. literalinclude:: ../../examples/get_metadata_broker_descriptions.py :language: python :linenos: - :lines: 31- \ No newline at end of file + :lines: 29- \ No newline at end of file diff --git a/docs/source/examples.post_artifact.rst b/docs/source/examples.post_artifact.rst index a905545..f5d2dbd 100644 --- a/docs/source/examples.post_artifact.rst +++ b/docs/source/examples.post_artifact.rst @@ -7,4 +7,4 @@ Post artifact .. literalinclude:: ../../examples/post_artifact.py :language: python :linenos: - :lines: 33- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/dotenv b/dotenv index c5f1fcd..7e3720b 100644 --- a/dotenv +++ b/dotenv @@ -1,8 +1,8 @@ -# Client connector info +# Client connector info: API_KEY=insert_api_key_here ACCESS_URL=insert_access_url_here CONNECTOR_ID=insert_connector_id_here AGENT_ID=insert_agent_id_here -EXTERNAL_CONNECTOR_ID=insert_connector_id_here -EXTERNAL_AGENT_ID=insert_agent_id_here -EXTERNAL_ACCESS_URL=insert_access_url_here \ No newline at end of file + +# Metadata Broker info: +METADATA_BROKER_URL=insert_metadata_broker_url_here \ No newline at end of file diff --git a/examples/get_metadata_broker_descriptions.py b/examples/get_metadata_broker_descriptions.py index 8f61ffb..d5b7da1 100644 --- a/examples/get_metadata_broker_descriptions.py +++ b/examples/get_metadata_broker_descriptions.py @@ -2,7 +2,7 @@ Example - Get self-descriptions of an external connector -Last update: 2024-01-27 +Last update: 2024-02-28 This request retrieves the self-descriptions of connectors registered in the metadata broker. @@ -53,7 +53,10 @@ print("-" * 79) print("> Connectors w/ self-descriptions in metadata-broker") for k in result: - print("Connector:", k["@id"]) + print("Connector ID:", k["@id"]) + print("Access URL:", k["ids:hasEndpoint"][0]["ids:accessURL"]["@id"].split('/router')[0]) + print("Agent ID:", k["ids:maintainer"]["@id"]) + print("-") print("-" * 79) print("> Connectors w/ data apps")