This app takes customer information and gives opportunity to apply credit application. The applications result calculated by given algorithm and result is sent via SMS to customers phone number.
- Java 11
- Spring Boot
- Spring Data JPA
- Kotlin 1.5.0
- Flyway
- PostgreSQL (for real DB)
- H2 Database (for test DB)
- JUnit 5
- Twilio API (to send SMS)
- OpenAPI documentation
- Exception Handling
- Validation
- Unit Tests of Service and Integration Tests (for important bussiness logics)
POST /v1/customer
Host: localhost:8080
{
"identityNumber": 18800000010,
"name": "Kaan",
"surName": "Kalan",
"salary": "9000",
"telephone": "+905430000000",
"birthDate": "1996-02-10",
"assurance": 1000
}
GET /v1/customer/filter/18800000010
Host: localhost:8080
PUT /v1/customer/18800000010
Host: localhost:8080
{
"identityNumber": 18800000010,
"name": "Kaan",
"surName": "Kalan",
"salary": "7000",
"telephone": "+05430000000",
"birthDate": "1996-02-10",
"assurance": 1500
}
DELETE /v1/customer/18800000010
Host: localhost:8080
POST /v1/credit/apply/18800000010
Host: localhost:8080
GET /v1/credit/customer
Host: localhost:8080
{
"customerIdentityNumber": 18800000501,
"customerBirthDate": "1996-02-10"
}