QA Test

0. Provision system locally

1. Provide api tests for the system

  • There are 2 types of users in the system (regular one and administrator). Authentication based on API token. Use YECRSbpLDCXrJXCrVKOU for authentication as regular user and tR6TI49mh4fbKAuSjm9L for administration access. See right upper corner in api doc page.
  • There are few endpoints groups in the system: Currency (currency management in REST style), Exchange (with only one endpoint: POST/api/v1/exchange/)
  • Only user with administration access should have access to POST/api/v1/currencies/ and DELETE/api/v1/currencies/{id}
  • The calculation in POST/api/v1/exchange/ uses formula: request.amount * currencyFrom.value / currencyTo.value
  • Write tests using the BDD approach with JS (choose a library at its discretion)(remember that it is a Tester position)
  • Write any comments, assumptions as deemed necessary
  • Optionally, you can include a brief explanation of your solution.