Skip to content

marikn/football_leagues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API for football teams management

Installation

  • Run composer install to install all dependencies
  • Create database with php bin/console doctrine:database:create command
  • Create database structure with php bin/console doctrine:migrations:migrate command
  • Load test data to database php bin/console doctrine:fixtures:load
  • Create test user with symfony command php bin/console app:create-user --username="user" --email="test@mail.com" --roles="USER_ROLE"
  • Then you can log in to API with POST /login method with data generated by command. Request body example: {"username": "user", "password": "generated password"}
  • Now you can access API method's by REST client. For example: /api/leagues method

Unit tests

  • To run unit tests use php bin/phpunit command

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published