Skip to main content
In the tutorial we will implement the simplest app with token authentication. We will use NodeJS and Express framework, but you can use any other programming language. Find source code repository here: https://gitlab.com/fibery-community/integration-sample-apps To create simple app you need to implement following Custom App: REST Endpoints:
  • getting app information: GET /
  • validate account: POST /validate
  • getting synchronizer configuration: POST /api/v1/synchronizer/config
  • getting schema: POST /api/v1/synchronizer/schema
  • fetching data POST /api/v1/synchronizer/data
Let’s implement them one by one. But first let’s define dataset:

Getting app information

App information should have the structure described in App configuration. Let’s implement it. We can see that the app require token authentication and responsible for data synchronization.

Validate account

Since authentication is required we should run an authentication and return corresponding user name. You can find more information about the endpoint here.

Getting sync configuration

This is basic a scenario and we don’t need any dynamic. So we will return a static configuration with no filters.

Getting schema

We should provide schema for selected types.

Fetching data

The endpoint receives requested type, accounts, filter and set of selected types and should return actual data.
And that’s it! Our app is ready for use. See full example here.