Giter Site home page Giter Site logo

ppragnya / public-people-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from financial-times/public-people-api

0.0 0.0 0.0 968 KB

Public API for retrieving information about a person

License: MIT License

Go 95.50% Dockerfile 3.05% HTML 1.45%

public-people-api's Introduction

Public API for People (public-people-api)

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

People 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.

Build & deployment

Coverage StatusCircleCI

Installation & running locally

  1. Run the tests and install the binary:

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

     $GOPATH/bin/public-people-api [--help]  
    

Options:

  --app-system-code         System Code of the application (env $APP_SYSTEM_CODE) (default "public-people-api")
  --app-name                Application name (env $APP_NAME) (default "Public People API")
  --log-level               App log level (env $LOG_LEVEL) (default "info")
  --port                    Port to listen on (env $PORT) (default 8080)
  --cache-duration          Duration Get requests should be cached for. e.g. 2h45m would set the max-age value to '7440' seconds (default:30s)
  --requestLoggingEnabled   Whether to log requests (env $REQUEST_LOGGING_ENABLED) (default true)
  --publicConceptsApiURL    Public concepts API endpoint URL. ($CONCEPTS_API) (default: "http://localhost:8080")

Test locally

go test -v -race ./...

Endpoints

  • Based on the following google doc.
  • See the api for the swagger definitions of the endpoints below.

public-people-api's People

Contributors

sisidovski avatar bboykov avatar doramatadora avatar galiri avatar geoah avatar dbelev avatar dawngerpony avatar sjwells avatar rosentodorov-ft avatar erdema-ft avatar georgi-denchew avatar dgem avatar yottta avatar scbbestof avatar mitagg avatar ivan-p-nikolov avatar izzyblues avatar tosan88 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.