Testing
To test your application locally, demo user context can be used to observe functionality. The platform-api.js
function getPlatformContext
cannot be used outside of the platform scope, you can test the application with platform context by contacting our team and receiving access to a demo customer portal for this purpose.
App (Client Token)
As mentioned in 'Accessing Masterdata', both an application token (client token) and a user token (auth_token) are required to be able to utilise AAS and Submodel data. A demonstration of retrieving the Application token is demonstrated below.
As a reminder, the App ID and App Secret Code are available by navigating onto your app dashboard > App Information:
Note that the access token will not be available outside the demo customer portal or platform scope, resulting in an invalid token response while hosting the application externally.
Once the application has access to its app and user context token, integrating Masterdata or Transactional data from the platform to test and implement functionality is worked through calling the available endpoints.
Platform context endpoints can be experienced by forking the IndustryApps Postman collection. The app and user tokens should be added in the environment of the forked collection.
Local & Production deployment
The application can be connected via the pre-defined sidecar, Eureka endpoints and have the container image pushed onto the platform. Once the app has been onboarded, user experience can be tested via a demo customer portal as part of the Vendor registration process. You will receive a trial user id and password for the developer store and smart factory platform.
Last updated