DownloadCurrency exchange REST API  
Currency exchange is a REST API made with Symfony. 
Documentation
GET /currency/{currencyFrom}/{currencyTo}/?number=number
example: GET /currency/eur/dol/?number=3.45
POST /currency/{currency}
parameters: json => {rateToEur, symbol}
example: POST /currency/eur with {rateToEur: 1, symbol: "?"}
 
PUT /currency/{currency}
parameters: json => {rateToEur, symbol}
example: PUT /currency/eur with {rateToEur: 1, symbol: "eur"}
DELETE /currency/{currency}
example: DELETE /currency/eur
 
Installation
git clone https://github.com/msalsas/currency-exchange.git
 
cd currency-exchange
 
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-sqlite3 as database is sqlite by default 
Testing
php ./bin/phpunit
 
License
This bundle is under the MIT license. See the complete license in the bundle 
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker. 
 |