Skip to content

Commit

Permalink
Merge pull request #12 from CPES-Power-and-Energy-Systems/feat/patch-…
Browse files Browse the repository at this point in the history
…openapi-specs

updated docs. Updated dotenv file (incorrect variable naming)
  • Loading branch information
itsjrsa authored Feb 28, 2024
2 parents fb8c5c3 + 6b578f7 commit 8fafc8b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples.delete_artifact.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Delete artifact
.. literalinclude:: ../../examples/delete_artifact.py
:language: python
:linenos:
:lines: 29-
:lines: 31-
2 changes: 1 addition & 1 deletion docs/source/examples.edit_artifact.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Edit artifact
.. literalinclude:: ../../examples/edit_artifact.py
:language: python
:linenos:
:lines: 33-
:lines: 35-
2 changes: 1 addition & 1 deletion docs/source/examples.get_metadata_broker_descriptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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-
:lines: 29-
2 changes: 1 addition & 1 deletion docs/source/examples.post_artifact.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Post artifact
.. literalinclude:: ../../examples/post_artifact.py
:language: python
:linenos:
:lines: 33-
:lines: 35-
8 changes: 4 additions & 4 deletions dotenv
Original file line number Diff line number Diff line change
@@ -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

# Metadata Broker info:
METADATA_BROKER_URL=insert_metadata_broker_url_here
7 changes: 5 additions & 2 deletions examples/get_metadata_broker_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 8fafc8b

Please sign in to comment.