Skip to content

deftonee/currency_service_for_job_interview

Repository files navigation

  • Set environment variables:
  1. DB_CONNECTION containing empty database address. Example: postgresql://localhost:5432/currency_service

  2. ADMIN_USER containing login name for basic http authorization. Example: admin

  3. ADMIN_PASSWORD containing password for basic http authorization. Example: 12345

  • Run server:

python main.py

http://0.0.0.0:8080/fetch

  • Show currencies (default page size is 5)

http://0.0.0.0:8080/currencies

  • Show currencies with certain page size and/or page number

http://0.0.0.0:8080/currencies?page_size=2&page=3

  • Show rate and average trading volume for last 10 days for given currency id

http://0.0.0.0:8080/rates/3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages