Giter Site home page Giter Site logo

passport-control's Introduction

Passport control

This service is to check a batch of passport series and numbers against a list of expired and non-valid passports.

For more information see http://сервисы.гувм.мвд.рф/info-service.htm?sid=2000.

Usage

git clone https://github.com/maurokouti/passport-control.git
cd ./passport-control
docker-compose up -d

Update a dataset

docker-compose exec app php bin/update.php

Make a request

The service accepts HTTP requests with the body in CSV format:

curl -iv http://127.0.0.1:8080/ --data-binary @- << END
1234,123456
5411,222110
4321,654321
3211,053785
END

Response format

The service replies with the series and number found in the list.

5411,222110
3211,053785

204 No Content code is returned when nothing was found.

License

The MIT License (MIT). Please see LICENSE for more information.

passport-control's People

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.