Skip to main content

Transformer Service

The resource for using transformers to transform collected data into ODSL Variables

REST API

The Transformer REST API is a full CRUD API allowing you to search and filter transformers as well as update, version and delete them. It is accessed through the following URL:

https://api.opendatadsl.com/api/transformer

The API consists of the following calls:

MethodPathExampleDescription
GETGet the build information for this service
GET{release}/{source}v1/public v1/privateList public or private transformers
GET{release}/{source}/{key}v1/private/TESTRetrieve a single transformer using it’s unique id
GET{release}/{source}/{key}/{version}v1/private/TEST/1Retrieve a version of a single transformer
GET{release}/{source}/{key}/*v1/private/TEST/*Get a list of versions for a specific transformer
PUT{release}/{source}/{key}/{version}/{tag}v1/private/TEST/1/PRODTag a version with a name (which can be used instead of the version number when retrieving it)
POST{release}v1Create or update a transformer, the transformer is the body of the POST request
DELETE{release}/{source}/{key}v1/private/TESTRollback to the previous version of a transformer, if it is the only version then the extractor will be deleted
DELETE{release}/{source}/{key}/{version}v1/private/TEST/1Delete a specific version of a transformer
DELETE{release}/{source}/{key}/*v1/private/TEST/*Fully delete a transformer, including all versions

Entities

Transformer wrapper

The transformer entity contains the following information:

NameDescriptionType
_idUnique id for the transformerString
_typeThe type - always VarTransformerString
categoryThe category of the transformerString
descriptionA description of the transformerString
scriptA base64 encoded String of the entire transformer scriptString