Copyright © Bentley Systems, Incorporated. All rights reserved.
A sample application that demonstrates how to use the endpoints from the 4D Schedules External API in an SPA (Single-Page Application).
- Git
- NodeJS and NPM
- Optionally an IDE such as Visual Studio Code. Using the command line is also possible (and will be used to run the project in VS Code also).
- Ensure that your project (developer.bentley.com and imsoidcui.bentley.com) has the following:
- In "Redirect URIs", ensure that
https://localhost:4000/signin-callback
is present. This can be done in either developer.bentley.com or imsoidcui.bentley.com. - In "Post logout redirect URIs", ensure that
https://localhost:4000/logout
is present. This can be done in either developer.bentley.com or imsoidcui.bentley.com. - In imsoidcui.bentley.com, ensure that your application has the "Allow Offline Access" option checked and that the Client Grant Type is "Auth Code".
- In "Redirect URIs", ensure that
- Clone repository
- Open the folder in Visual Studio Code
- Ctrl+J to open a terminal in the IDE which will default to the base folder
- Change directory
cd EsApi4DScheduleSPASampleApp
npm install --force
in the terminal to install dependencies- Run the application
npm start
- Clone repository
- Change directory to cloned folder
cd ES-API-Samples/EsApi4DScheduleSPASampleApp
- Install dependencies
npm install --force
- Run the application
npm start
API documentation in Swagger:
- 4D Schedules External API: https://es-api.bentley.com/4dschedule/swagger/index.html
A token can also be acquired from this page for testing.