Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 939 Bytes

README.md

File metadata and controls

56 lines (43 loc) · 939 Bytes

Start

symfony server:start

Project Structure

src/
├── Application/          # Application services / Сервисы приложения
│   └── Service/
├── Domain/               # Domain entities and logic / Доменные сущности и логика
│   ├── Entity/
│   ├── Service/
│   └── ValueObject/
├── Infrastructure/       # Infrastructure layer / Инфраструктурный слой
│ 
└── Controller/

Apply

POST /api/loans/apply

Example

{
    "firstName": "John",
    "lastName": "Doe",
    "age": 30,
    "state": "CA",
    "ssn": "123-45-6789",
    "ficoScore": 700,
    "email": "[email protected]",
    "phone": "+1234567890",
    "monthlyIncome": 5000,
    "loanName": "Personal Loan",
    "termMonths": 12,
    "interestRate": 5.5,
    "amount": 10000
}

Test

php bin/phpunit