Skip to content
This repository was archived by the owner on May 2, 2018. It is now read-only.

Financial-Times/sections-transformer

Repository files navigation

DECOMISSIONED See Basic TME Transformer instead

sections-transformer

Circle CI

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.

Usage

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages