A minimal API to extract info from Egyptian ID number.
- Install Maven
- cd into the project direcorty. then:
./mvnw spring-boot:run
OR Run It Using Docker
docker build -t info-extractor .
Then
docker run -p 8090:8080 info-extractor
- Extracts all Info (Birthdate, Birth Governerate, Gender, Serial, Check Digit) from a given valid national ID.
-
URL
-
Method:
GET
-
URL Params
Required:
requires URL query param:
?egyptianIDNumber=
- The following request:
curl http://localhost:8080/api/extract-info-from-id/?egyptianIDNumber=29808060103281
should result in the following response:
{
"Birthdate": "August 6th 1998",
"Birth Governorate": "Cairo",
"Gender": "Female",
"Serial": "0328",
"Check Digit": "1"
}