In order to use the Objecten API, the Objecten API module needs to be added as a dependency. The following can be added to your project, depending on whether Maven or Gradle is used:
The samples below assume the valtimo-dependency-versions module is used. If not, please specify the artifact version as well.
<dependencies>
<dependency>
<groupId>com.ritense.valtimo</groupId>
<artifactId>objecten-api</artifactId>
</dependency>
</dependencies>
dependencies {
implementation("com.ritense.valtimo:objecten-api")
}
A general instruction to add a front-end plugin to the implementation can be found here.
In order to use the Objecten API plugin in the frontend the following can be added to your app.module.ts
:
import { ObjectenApiPluginModule, objectenApiPluginSpecification } from '@valtimo/plugin';
@NgModule({
imports: [
ObjectenApiPluginModule,
],
providers: [
{
provide: PLUGIN_TOKEN,
useValue: [
objectenApiPluginSpecification,
]
}
]
})
Before the Objecten API plugin can be used, an authentication plugin is needed. One such authentication plugin is the Objecten API authentication plugin. Instructions on how to add this plugin can be found here.