This component assists in testing Microsoft Energy Data Services REST APIs to execute underlying service API calls or perform functional flows.
There are many different ways that REST APIs can be called from the use of simple curl commands to complex Postman projects. For this lab, a Rest Client will be used for a simple way to send a request. This extension allows for simple http scripts to be executed and leverages Visual Studio Settings to be able to easily point to different environments.
"rest-client.environmentVariables": {
"{{this.instanceName}}": {
"TENANT_ID": "{{this.tenantId}}",
"CLIENT_ID": "{{this.clientId}}",
"HOST": "{{this.host}}",
"DATA_PARTITION": "{{this.dataPartition}}",
"DEVELOPER_PORTAL": "{{this.developerPortalUrl}}",
"REFRESH_TOKEN": "{{this.refreshToken}}"
}
}
Basic core functionality for includes: the creation of a legal tag, the submission of a storage record, and then the search and retrieval for that record.
Send Requests from rest/check-core.http
Basic manifest ingestion functionality includes: the creation of a legal tag, triggering a workflow, retrieving the status, waiting for completion, and then querying for the data uploaded.
Send Requests from rest/check-csv.http
Basic csv data ingestion functionality includes: the creation of a legal tag, creation of a schema, retrieval of an Upload URL, uploading a CSV file to that URL, triggering the workflow, retrieving the status, waiting for completion, and then querying the data uploaded.
Send Requests from rest/check-csv.http