damijanc / rest-client-demo
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ^6.2
- incenteev/composer-parameter-handler: ^2.0
- jms/di-extra-bundle: ^1.8
- jms/serializer-bundle: ^1.1
- sensio/distribution-bundle: ^5.0
- sensio/framework-extra-bundle: ^3.0.2
- symfony/monolog-bundle: ~2.11.3
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3
- symfony/symfony: 3.1.*
Requires (Dev)
- phpunit/phpunit: ^5.6
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is auto-updated.
Last update: 2024-11-10 05:29:53 UTC
README
![Travis status] (https://travis-ci.org/damijanc/rest-client-demo.svg?branch=master)
simple-rest
Example rest service using Symfony 3, Doctrine and MariaDB
Installation:
- Run in project root
composer install
- Setup database
mysql -u root < ./Model/generation.sql
How to run
- You can run the server with builtin php server just by
running
php bin/console server:run
Tests
To run tests run ./vendor/bin/phpunit
in project root
Mock api runner
- In order to run mock api that you can use to test your you need to have nodejs installed. Then run
npm install
npm run-script run
Your mock api will be accessible on http://127.0.0.1:3030/api/
Check RAML for details.