|  Download Budget request REST API Budget request is a REST API made with Symfony. DocumentationGET /budget
example: GET /[email protected]&offset=20&limit=50
Description: Get all budgets paginated (optionally by email)
 POST /budget
parameters: json => {title, description, category, email, telephone, address}
example: POST /budget
Description: Create a budget
 PUT /budget/{id}
parameters: json => {title, description, category}
example: PUT /budget/32
Description: Update a budget
 PUT /budget/publish/{id}
example: PUT /budget/publish/32
Description: Publish a budget
PUT /budget/discard/{id}
example: PUT /budget/publish/32
Description: Discards a budget
 Installationgit clone https://github.com/msalsas/budget-request.git
 cd budget-request
cp .env .env.local
 Set DATABASE_URL variable in .env.local to your needs (db_user and db_password, as well as db_name) composer install
 php bin/console doctrine:database:create
 php bin/console doctrine:database:create --env=test
php bin/console doctrine:migrations:migrate
 php bin/console doctrine:migrations:migrate --env=test
 symfony server:start 
 you will need:  - The Symfony installer  - php-sqlite3as database for testing is sqlite by default Testingphp ./bin/phpunit
 LicenseThis bundle is under the MIT license. See the complete license in the bundle Reporting an issue or a feature requestIssues and feature requests are tracked in the Github issue tracker. |