Version: 1.4.4
The sample code in this demonstrates how to invoke Data View REST APIs via the sample Java client library. The sample demonstrates how to establish a connection to SDS, obtain an authorization token, create an SdsType and SdsStream with data (if needed), create a data view, update it, retrieve it, and retrieve data from it in different ways. At the end of the sample, everything that was created is deleted.
- Clone a local copy of this GitHub repository.
- Install the Java Client Library (see its readme for instructions)
- The sample is configured using the file appsettings.placeholder.json. Before editing, rename this file to
appsettings.json
.- This repository's
.gitignore
rules should prevent the file from ever being checked in to any fork or branch, to ensure credentials are not compromised.
- This repository's
- Replace the configuration strings in
appsettings.json
- Build and run the project.
cd
to your project location.- run
mvn package exec:java
on cmd.
*Currently this project is not hosted on the central Maven repo and must be compiled and installed locally.
Tested against Maven 3.6.3 and Java Runtime Environment 11.
For the main Cds data view samples page ReadMe
For the main Cds samples page ReadMe
For the main AVEVA samples page ReadMe