Public | Automated Build

Last pushed: 2 months ago
Short Description
Provides a public API for People stored in a Neo4J graph database
Full Description

Public API for People (public-people-api)

Generates JSON representation of a Person in public-friendly format.

Build & deployment

Installation & running locally

  1. Download the source code, dependencies and its test dependencies:

     go get -u
     cd $GOPATH/src/
     go get -t
  2. Run the tests and install the binary:

     go test ./...
     go install
  3. Run the binary (using the help flag to see the available optional arguments):

     $GOPATH/bin/public-people-api [--help]
  4. Test:

    1. Either using curl:

       curl http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517 | json_pp
    2. Or using httpie:

       http GET http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517



Using curl:

curl http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517 | json_pp`

Or using httpie:

http GET http://localhost:8080/people/143ba45c-2fb3-35bc-b227-a6ed80b5c517

The expected response will contain information about the person, and the organisations they are connected to (via memberships).

Based on the following google doc.

Health Checks

Health checks: http://localhost:8080/__health


  • The application uses logrus; the log file is initialised in app.go.
  • Logging requires an env app parameter, for all environments other than local logs are written to file.
  • When running locally, logs are written to console. If you want to log locally to file, you need to pass in an env parameter that is != local.
  • NOTE: /build-info and /__gtg endpoints are not logged as they are called every second from varnish/vulcand and this information is not needed in logs/splunk.
Docker Pull Command