Request - JSON
The API support JSON formatted responses.
This solution puts higher requirements on the integration since the data isn't formatted. It means you have to handle the locale, percent formation, signs for positives/negatives and so on.
Get widget
GET
https://widget.datablocks.se/api/rose/widgets/:widgetType?token=:tokenId&type=json
Get JSON formatted data (The response is an example of the owner-list)
Path Parameters
widgetType*
string
Specific widget (example: owner-list)
Query Parameters
token*
string
Credential provided by MF, specific for each widget
Example
Calendar - JSON
In JSON-integration, the data that is used to build the calendar is provided. Note that this means that you have to handle logic like deciding when to show the end date of an event (presumably based on the includeEnd
field), whether to show times (based on the includeTime
field), how to format everything, and so on. Language selection and time locale are, however, handled by the backend.
The JSON API is located at https://widget.datablocks.se/proxy/calendar/:widgetId/:language
IMPORTANT: timeLocation
and languageFallback
should be provided as query parameters (The backend will default to UTC
and false
respectively if they are not provided or not correct).
Thus, a typical request might look like:
Other available integration methods
Last updated
Was this helpful?