Build & run app
$ docker-compose up -d
App install
$ bin/app-bash install
Login
POST /api/login_check
login JSON request body example:
{"username":"test","password":"test"}
for creating user check FOSUserBundle doc
Get list of league teams
GET /api/team/{leagueId}
Create new team
POST /api/team
Update team data
PUT /api/team/{teamId}
JSON request body example:
{"name": "Some name of football team", "league": 1, "strip": "example text"}
- name & league are required fields
Remove league
DELETE /api/league/{leagueId}