Skip to content

Implementation of the currency conversion API#195

Open
Megabrean wants to merge 2 commits intoApiki:masterfrom
Megabrean:andre-ruegger
Open

Implementation of the currency conversion API#195
Megabrean wants to merge 2 commits intoApiki:masterfrom
Megabrean:andre-ruegger

Conversation

@Megabrean
Copy link
Copy Markdown

This Pull Request implements the solution for Apiki's Back-end Challenge.

  • Routing compatible with the PHP built-in server
  • Support for the /exchange prefix used by the test suite
  • Normalization and validation of parameters received via URL
  • Integration with the ExchangeService class for currency calculation and symbol
  • Consistent JSON response for success and errors
  • Necessary adjustments to ensure compatibility with Codeception

Main improvements

  • Routing correction so that all requests pass through index.php
  • Automatic removal of the /exchange prefix when present
  • Robust validation of amount, currencies, and rate
  • Clear implementation of conversion logic and currency symbol

Andre Ruegger added 2 commits March 4, 2026 10:18
- Add support for /exchange prefix
- Fix server routing for PHP built-in server
- Normalize URL parsing
- Validate parameters correctly
- Integrate with ExchangeService
- All 14 tests passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant