Public | Automated Build

Last pushed: 3 months ago
Short Description
Automated build for the alphaville-series-transformer.
Full Description

DECOMISSIONED
See Basic TME Transformer instead

Alphaville Series Transformer

Retrieves Alphaville Series taxonomy from TME and transforms the series to the internal UP json model.
The service exposes endpoints for getting all the series and for getting series by uuid.

Usage

To get source code:

go get -u github.com/Financial-Times/alphaville-series-transformer

To run:

$GOPATH/bin/alphaville-series-transformer --port=8080 --base-url="http://localhost:8080/transformers/alphaville-series/" --tme-base-url="https://tme.ft.com" --tme-username="user" --tme-password="pass" --token="token" --tme-taxonomy-name="AlphavilleSeriesClassification"`

export|set PORT=8080  
export|set BASE_URL="http://localhost:8080/transformers/alphaville-series/"  
export|set TME_BASE_URL="https://tme.ft.com"  
export|set TME_USERNAME="user"  
export|set TME_PASSWORD="pass"  
export|set TOKEN="token"  
export|set CACHE_FILE_NAME="cache.db"  
$GOPATH/bin/alphaville-series-transformer

Docker

Docker build:

docker build -t coco/alphaville-series-transformer .

To run:

docker run -ti --env BASE_URL=<base url> --env TME_BASE_URL=<structure service url> --env TME_USERNAME=<user> --env TME_PASSWORD=<pass> --env TOKEN=<token> --env CACHE_FILE_NAME=<file> --env "TME_TAXONOMY_NAME=AlphavilleSeriesClassification" coco/alphaville-series-transformer

Endpoints

  • /transformers/alphaville-series - Get all alphavillle series as APIURLs
  • /transformers/alphavilles-series/{uuid} - Get alphavillle series data of the given uuid
  • /transformers/alphaville-series/__ids - Get a stream of alphavillle series ids in this format {id : uuid}
  • /transformers/alphaville-series/__count - Get count of alphavillle series
Docker Pull Command
Owner
coco

Comments (0)