Skip to content

Latest commit

 

History

History

EsApi4DScheduleSPASampleApp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

4D Schedules External API SPA Sample App

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).

Prerequisites

  • 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:
    1. 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.
    2. 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.
    3. In imsoidcui.bentley.com, ensure that your application has the "Allow Offline Access" option checked and that the Client Grant Type is "Auth Code".

Development Setup (Visual Studio Code)

  1. Clone repository
  2. Open the folder in Visual Studio Code
  3. Ctrl+J to open a terminal in the IDE which will default to the base folder
  4. Change directory cd EsApi4DScheduleSPASampleApp
  5. npm install --force in the terminal to install dependencies
  6. Run the application npm start

Development Setup (command line)

  1. Clone repository
  2. Change directory to cloned folder cd ES-API-Samples/EsApi4DScheduleSPASampleApp
  3. Install dependencies npm install --force
  4. Run the application npm start

API documentation

API documentation in Swagger:

A token can also be acquired from this page for testing.