You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* (optional) Specify the `namespace` to use when accessing the Ed-Fi API. The default is `ed-fi` but others include `tpdm` or custom values. To send data to multiple namespaces, you must use a YAML configuration file and `lightbeam send` for each.
69
73
* Specify the details of the `edfi_api` to which to connect including
70
74
* (optional) The `base_url` which serves a JSON object specifying the paths to data endpoints, Swagger, and dependencies. The default is `https://localhost/api` (the address of an Ed-Fi API [running locally in Docker](https://techdocs.ed-fi.org/display/EDFITOOLS/Docker+Deployment)), but the location varies depending on how Ed-Fi is deployed.
75
+
* If the metadata for a particular API is not located in the "default" location (at the root of the base_url), then ALL the following urls should be explicitly specified. These can normally be left blank, unless you are encountering errors indicating that the metadata files cannot be found (such as "Could not parse response from [base_url]").
raiseException("OpenAPI metadata URL returned status {0} ({1})".format(response.status_code, (response.content[:75] +"...") iflen(response.content)>75elseresponse.content))
170
-
openapi=response.json()
171
170
172
-
exceptExceptionase:
173
-
self.logger.critical("Unable to load Swagger docs from API... terminating. Check API connectivity.")
171
+
# If the metadata URL is set (pulled from root metadata file earlier), then pull endpoint urls from metadata
raiseException("OpenAPI metadata URL returned status {0} ({1})".format(response.status_code, (response.content[:75] +"...") iflen(response.content)>75elseresponse.content))
180
+
openapi=response.json()
181
+
182
+
exceptExceptionase:
183
+
self.logger.critical("Unable to load Swagger docs from API... terminating. Check API connectivity.")
184
+
185
+
# If metadata URL is not found, set endpoint URLs from config file
0 commit comments