/people-rw-neo4j

People Read/Write API backed by neo4j

Primary LanguagePythonMIT LicenseMIT

People Reader/Writer for Neo4j (people-rw-neo4j)

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.

Installation

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

Running

`$GOPATH/bin/people-rw-neo4j --neo-url={neo4jUrl} --port={port}

Both arguments are optional, they default to a local Neo4j install and port 8080.

Try it!

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