Utilities & Diagnostics

Helper endpoints that support integration callbacks, developer testing and monitoring workflows.

CallbackController

Handles OAuth callbacks from Visma eAccounting integrations and restarts the background synchronisation service.

Endpoint Description Request Response
GET /api/Callback?code=&scope=&state= Persists the provided Visma authorisation code into the integration settings XML, clears cached tokens and restarts the Visma sync Windows service. Query: code, scope, state provided by Visma. HTTP 200 with a JSON message echoing the received values; HTTP 417 if processing fails.

ValuesController

Sample controller shipped with the project template and useful for connectivity tests.

Endpoint Description Request Response
GET /api/values Returns a static string array demonstrating a successful API call. None. ["value1", "value2"].
GET /api/values/{id} Echoes a placeholder string. Use to verify parameter binding. Route: integer id. "value".
POST /api/values Accepts a string payload; stub implementation for testing POST connectivity. Body: plain string. HTTP 204 (no content).

NotificationController (inactive)

The repository contains a commented-out NotificationController intended for email/SMS notifications. When re-enabled it should expose POST api/Notification for sending notification payloads.