f913520823 | ||
---|---|---|
bin | ||
config | ||
migrations | ||
ops | ||
public | ||
src | ||
templates | ||
tests | ||
translations | ||
.env | ||
.env.test | ||
.gitignore | ||
Makefile | ||
README.md | ||
composer.json | ||
composer.lock | ||
docker-compose.yml | ||
servers_filters_assignment.xlsx | ||
symfony.lock |
README.md
Hello so to get the project up do:
- make build
- make composer_install
- make run
Then to filter the results
curl -XPOST -d'{"location": "AmsterdamAMS-01", "ram":[2, 4], "storage": {"from":"0","to":"2000"}}' http://localhost:8000/server/search/
The filtering parameters are
"location", {"ram": [from, to]}, {"storage": {"from": int, "to": int}} to localhost:8000/server/search
and to see the servers location list -XGET server/location
PHPUnit
There are also some unit tests you can run with
make phpunit