Brands are being migrated to be served from the new Public Concepts API and as such this API will eventually be deprecated. From July 2018 requests to this service will be redirected via the concepts api then transformed to match the existing contract and returned.
Provides a public API for Brands data
_NB You will need to tag a commit in order to build
Information about the service can be found in the (public-brands-api runbook)[https://sites.google.com/a/ft.com/ft-technology-service-transition/home/run-book-library/public-brands-api]
go get -u github.com/Financial-Times/public-brands-apicd $GOPATH/src/github.com/Financial-Times/public-brands-apigo test ./...go install$GOPATH/bin/public-brands-api --neo-url={neo4jUrl} --port={port} --log-level={DEBUG|INFO|WARN|ERROR}
Both arguments are optional.
--neo-url defaults to http://localhost:7474/db/data, which is the out of box url for a local neo4j instance.
--port defaults to 8080.curl http://localhost:8080/brands/2d3e16e0-61cb-4322-8aff-3b01c59f4daa | json_pphttp://api.ft.com/brands/{uuid}{
"id": "http://api.ft.com/things/{uuid}",
"apiUrl": "http://api.ft.com/brands/{uuid}",
"types": [
"http://www.ft.com/ontology/core/Thing",
"http://www.ft.com/ontology/concept/Concept",
"http://www.ft.com/ontology/classification/Classification",
"http://www.ft.com/ontology/product/Brand"
],
"directType": "http://www.ft.com/ontology/product/Brand",
"prefLabel": "Brand Name",
"description": "A description of the brand, in plain text",
"descriptionXML": "<body><p>A description of the brand, in <i>bodyXML</i></p></body>",
"strapline": "A subsidiary heading, caption or advertising slogan",
"_imageUrl": "http://images.ft.com/tempImageWhilstThisIsResolved.jpg",
"childBrands": [],
"parentBrands"" []
}
{
"id": "http://api.ft.com/things/e363dfb8-f6d9-4f2c-beba-5162b334272b",
"apiUrl": "http://api.ft.com/brands/e363dfb8-f6d9-4f2c-beba-5162b334272b",
"types": [
"http://www.ft.com/ontology/core/Thing",
"http://www.ft.com/ontology/concept/Concept",
"http://www.ft.com/ontology/classification/Classification",
"http://www.ft.com/ontology/product/Brand"
],
"directType": "http://www.ft.com/ontology/product/Brand",
"prefLabel": "Lex Live",
"description": "",
"descriptionXML": "",
"strapline": "",
"_imageUrl": "",
"parentBrands": [
{
"id": "http://api.ft.com/things/2d3e16e0-61cb-4322-8aff-3b01c59f4daa",
"apiUrl": "http://api.ft.com/brands/2d3e16e0-61cb-4322-8aff-3b01c59f4daa",
"types": [
"http://www.ft.com/ontology/product/Brand"
],
"prefLabel": "Lex"
}
],
"childBrands": []
}
{
"id": "http://api.ft.com/things/2d3e16e0-61cb-4322-8aff-3b01c59f4daa",
"apiUrl": "http://api.ft.com/brands/2d3e16e0-61cb-4322-8aff-3b01c59f4daa",
"types": [
"http://www.ft.com/ontology/core/Thing",
"http://www.ft.com/ontology/concept/Concept",
"http://www.ft.com/ontology/classification/Classification",
"http://www.ft.com/ontology/product/Brand"
],
"directType": "http://www.ft.com/ontology/product/Brand",
"prefLabel": "Lex",
"description": "",
"descriptionXML": "",
"strapline": "",
"_imageUrl": "",
"parentBrands": [
{
"id": "http://api.ft.com/things/dbb0bdae-1f0c-11e4-b0cb-b2227cce2b54",
"apiUrl": "http://api.ft.com/brands/dbb0bdae-1f0c-11e4-b0cb-b2227cce2b54",
"types": [
"http://www.ft.com/ontology/core/Thing",
"http://www.ft.com/ontology/concept/Concept",
"http://www.ft.com/ontology/classification/Classification",
"http://www.ft.com/ontology/product/Brand"
],
"directType": "http://www.ft.com/ontology/product/Brand",
"prefLabel": "Financial Times"
}
],
"childBrands": [
{
"id": "http://api.ft.com/things/e363dfb8-f6d9-4f2c-beba-5162b334272b",
"apiUrl": "http://api.ft.com/brands/e363dfb8-f6d9-4f2c-beba-5162b334272b",
"types": [
"http://www.ft.com/ontology/core/Thing",
"http://www.ft.com/ontology/concept/Concept",
"http://www.ft.com/ontology/classification/Classification",
"http://www.ft.com/ontology/product/Brand"
],
"directType": "http://www.ft.com/ontology/product/Brand",
"prefLabel": "Lex Live"
}
]
}
Content type
Image
Digest
sha256:c208dbcfe…
Size
6 MB
Last updated
7 days ago
docker pull coco/public-brands-api