Welcome to Asset Bootstrap SDK. This is a SDK in Java for calling the Predix Asset API to perform CRUD operation on Asset Domain Objects. It has built in mechanism to perform authenticated calls to Asset API. It can be used as a dependency to other java back-end applications for performing CRUD operations on Asset Domain Objects. For further information please view the Asset Tutorial.
git clone https://github.com/PredixDev/asset-bootstrap.git
- From the command line, go the the project directory.
- Run as
mvn clean package
- Edit config/application.properties as follows. For further information on configuring Predix Asset service, please refer to the Asset Tutorial.
# e.g. predix.oauth.issuerId.url=https://36492c1e-657c-4377-ac51-add963552460.predix-uaa.cloud.com/oauth/token
predix.oauth.issuerId.url=put.your.uaa.issuerId.here
#you may put client:secret as unencoded cleartext by setting predix.oauth.clientIdEncode=true
predix.oauth.clientIdEncode=false
predix.oauth.clientId=you.should.base64encode(put.your.clientId:put.your.clientSecret separated by a colon)
# e.g. predix.asset.uri=predix-asset.cloud.com
predix.asset.uri=put.your.asset.service.instance.name.hostname.here
predix.asset.zoneid=put.your.asset.zoneid
# e.g. asset.service.base.url=https://predix-asset.cloud.com
asset.service.base.url=put.your.asset.service.base.url
- From the command line, go the the project directory.
- Run as
mvn clean install.
- Modify the pom.xml as follows in the SDK for which you would like to have asset-bootstrap as a dependency.
- Add the following under the
<dependencies>
section with the latest version:
<dependency>
<groupId>com.ge.predix.solsvc</groupId>
<artifactId>asset-bootstrap-client</artifactId>
<version>${asset-bootstrap.version}</version>
</dependency>
- Spring
- SpringTest
- Maven