Go to file
Francesco Allara f913520823 Document phpunit 2021-04-12 13:47:23 +02:00
bin Finished 2021-04-12 13:45:32 +02:00
config First 2021-04-11 00:09:47 +02:00
migrations First 2021-04-11 00:09:47 +02:00
ops Finished 2021-04-12 13:45:32 +02:00
public Add initial set of files 2021-04-08 13:08:06 +02:00
src Finished 2021-04-12 13:45:32 +02:00
templates Add initial set of files 2021-04-08 13:08:06 +02:00
tests Finished 2021-04-12 13:45:32 +02:00
translations Add initial set of files 2021-04-08 13:08:06 +02:00
.env Add initial set of files 2021-04-08 13:08:06 +02:00
.env.test Add initial set of files 2021-04-08 13:08:06 +02:00
.gitignore Finished 2021-04-12 13:45:32 +02:00
Makefile Document phpunit 2021-04-12 13:47:23 +02:00
README.md Document phpunit 2021-04-12 13:47:23 +02:00
composer.json Finished 2021-04-12 13:45:32 +02:00
composer.lock Finished 2021-04-12 13:45:32 +02:00
docker-compose.yml Finished 2021-04-12 13:45:32 +02:00
servers_filters_assignment.xlsx First 2021-04-11 00:09:47 +02:00
symfony.lock Finished 2021-04-12 13:45:32 +02:00

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