An API for reading/writing people into Neo4j. Expects the people json supplied to be in the format that comes out of the people transformer.
For the first time:
go get github.com/Financial-Times/people-rw-neo4j
or update:
go get -u github.com/Financial-Times/people-rw-neo4j
`$GOPATH/bin/people-rw-neo4j --neo-url={neo4jUrl} --port={port}
Both arguments are optional, they default to a local Neo4j install and port 8080.
curl -XPUT -H "X-Request-Id: 123" -H "Content-Type: application/json" localhost:8080/people/3fa70485-3a57-3b9b-9449-774b001cd965 --data '{"uuid":"3fa70485-3a57-3b9b-9449-774b001cd965", "name":"Robert W. Addington", "identifiers":[{ "authority":"http://api.ft.com/system/FACTSET-PPL", "identifierValue":"000BJG-E"}]}'
curl -H "X-Request-Id: 123" localhost:8080/people/3fa70485-3a57-3b9b-9449-774b001cd965
Healthchecks: http://localhost:8080/__health
Good-to-go: http://localhost:8080/__gtg