Nest API to verify/create estonian personal code for testing purpose
Copy .env.sample
and rename to .env
update the values if needed.
Optional You can use docker-compose.yml to run dockerized version of postgres and adminer for database. using docker compose up
command in root folder.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
You can access API at http://localhost:3000
Generate personal code when Gender and DoB provided.
URL /personal-code
Method POST
Body Params
{ "gender": "MALE/FEMALE", "dob": "dd.mm.yyyy" }
Validate provided personal code
URL /personal-code/:code
Method GET
Query Param
personal code 11 digit number