UPP Internal Concordances API build
9.7K
Internal UPP Concordances API which accepts a list of concept ids, concords them, and returns them as an array of UPP concepts.
Download the source code, dependencies and test dependencies:
go get -u github.com/kardianos/govendor
mkdir $GOPATH/src/github.com/Financial-Times/internal-concordances
cd $GOPATH/src/github.com/Financial-Times
git clone https://github.com/Financial-Times/internal-concordances.git
cd internal-concordances && govendor sync
go build .
govendor sync
govendor test -v -race +local
go install
help flag to see the available optional arguments):$GOPATH/bin/internal-concordances [--help]
Usage: internal-concordances [OPTIONS]
UPP Internal Concordances
Options:
--app-system-code System Code of the application (env $APP_SYSTEM_CODE) (default "internal-concordances")
--app-name Application name (env $APP_NAME) (default "internal-concordances")
--concept-search-api-endpoint Endpoint to query for concepts (env $CONCEPT_SEARCH_ENDPOINT) (default "http://concept-search-api:8080")
--public-concordances-endpoint Endpoint to concord ids with (env $PUBLIC_CONCORDANCES_ENDPOINT) (default "http://public-concordances-api:8080")
--port Port to listen on (env $APP_PORT) (default "8080")
--api-yml Location of the API Swagger YML file. (env $API_YML) (default "./api.yml")
curl http://localhost:8080/__health | jq
For a full description of API endpoints for the service, please see the Open API specification.
Admin endpoints are:
/__gtg
/__health
/__build-info
At the moment, both the /__gtg and /__health endpoints perform no checks (effectively a ping of the service).
/__build-info and /__gtg endpoints are not logged as they are called every second from varnish and this information is not needed in logs/splunk.Content type
Image
Digest
sha256:d9b60332f…
Size
4.4 MB
Last updated
about 10 hours ago
docker pull coco/internal-concordances