Skip to content

Commit 4847cc9

Browse files
fix issue creating datastream schema request
1 parent 2f257fe commit 4847cc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conSys4Py/part_2/datastreams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def retrieve_datastream_schema(server_addr: HttpUrl, datastream_id: str, api_roo
128128
.with_api_root(api_root)
129129
.for_resource_type(APITerms.DATASTREAMS.value)
130130
.with_resource_id(datastream_id)
131-
.for_resource_type(APITerms.SCHEMA.value)
131+
.for_sub_resource_type(APITerms.SCHEMA.value)
132132
.build_url_from_base()
133133
.with_headers(headers)
134134
.with_request_method('GET')

tests/test_script_full_suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from conSys4Py.datamodels.observations import ObservationOMJSONInline
1212
from conSys4Py.datamodels.commands import CommandJSON
1313

14-
server_url = "http://localhost:8282/sensorhub"
14+
server_url = "http://localhost:8585/sensorhub"
1515
geo_json_headers = {"Content-Type": "application/geo+json"}
1616
sml_json_headers = {"Content-Type": "application/sml+json"}
1717
json_headers = {"Content-Type": "application/json"}

0 commit comments

Comments
 (0)