This is a simple web service for checking IIN (Individual Identification Number) validity and creating, getting with IINs.
- Clone the repository
- Run
go mod download
to download dependencies - .env-test file for testing and you may use it for testing
- Run
make run
to start the server - Run
make test
to run tests
make run
- run the servermake test
- run testsmake build
- build the projectmake build-docker
- build the docker imagemake up
- run the docker containermake down
- stop the docker containermake clean-compose
- remove the docker container
GET /api/iin_check/{iin}
- Get IIN informationPOST /api/people/info
- Create citizen with IINGET /api/people/info?name=
- Get all citizens by nameGET /api/people/info/iin/{iin}
- Get citizen by IIN