This is a sample plugin demonstrating an API call action. It fetches data from a time API endpoint.
dependencies {
implementation("com.ritense.valtimoplugins:sample-plugin:0.0.1")
}{
"dependencies": {
"@valtimo-plugins/sample-plugin": "0.0.1"
}
}In your app.module.ts:
import {
SamplePluginModule, samplePluginSpecification,
} from '@valtimo-plugins/sample-plugin';
@NgModule({
imports: [
SamplePluginModule,
],
providers: [
{
provide: PLUGIN_TOKEN,
useValue: [
samplePluginSpecification,
]
}
]
})List the plugin configuration properties and how to set them.
| Property | Type | Required | Description |
|---|---|---|---|
| apiUrl | string | Yes | The URL of the time API to call |
Sends a GET request to the configured API URL and returns the timezone response.
| Parameter | Type | Required | Description |
|---|---|---|---|
Explain how to use the plugin in a process, with examples if applicable.