Public | Automated Build

Last pushed: 9 months ago
Short Description
brightcove metadata notifier
Full Description

Brightcove Metadata Notifier (also called brightcover metadata mapper)


Maps brightcove tags to appropriate TME IDs and sends the created metadata publish message to the cms-metadata-notifier.

##Installation

go get github.com/Financial-Times/brightcove-metadata-notifier

##Run the binary

go build
export MAPPING_URL="https://bertha.ig.ft.com/view/publish/gss/1UTzLQPgg_POaBZeOfAQoxY5YmjKxMqdP9O9oa_Fto9s/mappings"
export CMS_METADATA_NOTIFIER_ADDR="https://pub-xp-up.ft.com/__cms-notifier"
export CMS_METADATA_NOTIFIER_HOST_HEADER="cms-metadata-notifier"
export CMS_METADATA_NOTIFIER_AUTH="Basic dXB..."
./brightcove-metadata-notifier

Endpoints

/notify

The main operation. It maps brightcove tags to appropriate TME IDs and sends the created metadata publish message to the cms-metadata-notifier.

POST /notify

Brightcove metadata.

  • tags: the tags to be mapped

/__reload

Reload the tags mappings loaded in application by querying the remote endpoint (set with MAPPING_URL). The loading of tags mappings which is first done during application startup,
is based on the response sent by the remote endpoint. This link shows an example of the mapping received by this
application: https://docs.google.com/spreadsheets/d/1UTzLQPgg_POaBZeOfAQoxY5YmjKxMqdP9O9oa_Fto9s/edit#gid=0

POST /__reload

Examples:

curl -X POST -H "Content-Type: application/json" localhost:8080/notify --data '{"uuid":"370df85c-bdfc-11e6-8b45-b8b81dd5d080", "tags":["brazil"]}'

curl -X POST -H "Content-Type: application/json" localhost:8080/__reload
Docker Pull Command
Owner
coco

Comments (0)