Skip to content

devTym/test-yii2-app

Repository files navigation

Sum Even Numbers API (Yii2 + Docker)

Installation

Go to project directory and run:

composer install make up

Using via curl:

curl -X POST http://localhost:8000/api/sum-even
-H "Content-Type: application/json"
-d '{"numbers": [2, 4, 6]}'

Test Task Structure

.
├── controllers/
|   ├── ApiController
|── models/
|   ├── NumberForm
├── services/
|   ├── SumEvenCalculatorService
├── dto/
|   ├── NumbersDto
|   ├── sumDto
tests/
├── unit/
|   ├── model/
|   |   ├── NumberFormTest
|   ├── services/
|   |   ├── SumEvenCalculatorServiceTest 
└── README.md

Run Unit Tests

make test-unit

Run Unit Api

make test-api

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors