DECOMISSIONED See Basic TME Transformer instead
Retrieves Sections taxonomy from TME vie the structure service and transforms the sections to the internal UP json model. The service exposes endpoints for getting all the sections and for getting section by uuid.
go get github.com/Financial-Times/sections-transformer
$GOPATH/bin/sections-transformer --port=8080 --base-url="http://localhost:8080/transformers/sections/" --structure-service-base-url="http://metadata.internal.ft.com:83" --structure-service-username="user" --structure-service-password="pass" --principal-header="app-preditor"
export|set PORT=8080
export|set BASE_URL="http://localhost:8080/transformers/sections/"
export|set STRUCTURE_SERVICE_BASE_URL="http://metadata.internal.ft.com:83"
export|set STRUCTURE_SERVICE_USERNAME="user"
export|set STRUCTURE_SERVICE_PASSWORD="pass"
export|set PRINCIPAL_HEADER="app-preditor"
$GOPATH/bin/sections-transformer
With Docker:
docker build -t coco/sections-transformer .
docker run -ti --env BASE_URL=<base url> --env STRUCTURE_SERVICE_BASE_URL=<structure service url> --env STRUCTURE_SERVICE_USERNAME=<user> --env STRUCTURE_SERVICE_PASSWORD=<pass> --env PRINCIPAL_HEADER=<header> coco/sections-transformer
