GithubHelp home page GithubHelp logo

fycth / exchange-rates-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 72 KB

[EXAMPLE / TUTORIAL] That's test task from a company I had apply sometime ago to. Exchange rates server. Aggregates data from ECB, Yahoo Finance, etc.

Java 84.65% CSS 0.12% JavaScript 15.23%

exchange-rates-server's Introduction

Exchange rates server

It's a simple Java application that can be used as an exchange rates server. It can gather rates data from a set of sources (ECB, Yahoo Finance, etc.) and store rates in DB (PostgreSQL is used by default). The stored rates data can be requested via REST API.

Check code styling (checkstyle): mvn checkstyle:check

Do static code analyzis (CPD/PMD): mvn site - results will be available at target/site/project-reports.html

Compile and start: mvn clean install exec:java

Rates REST API

Get last rates from all sources: /rest/rates/current

Get rates for the certain source: /rest/rates/source/1

Get rates for the certain group: /rest/rates/group/2

Get rates for the default group: /rest/rates/group

Get rates for specific currency group: /rest/rates/currencygroup/2/

Get rates for default currency group: /rest/rates/currencygroup

Get legacy XML for default currency group: /rest/rates/currencygroup?legacy=true

Get legacy XML for specific source: /rest/rates/source/3?legacy=true

Put exchange rate data manually: /rest/rates/put/USD/1.5

Get rates for certain time limit:

    /rest/rates/current?from=20150101
    /rest/rates/group?from=201501012012
    /rest/rates/source/2?from=20150101&to=20151012

State REST API

The application provides state REST API that can be used for integrating with Zabbix.

Get status for all data sources: /admin/rest/state

Get status for specific data source: /admin/rest/state/1

Admin web UI

Basic admin web UI is accessible at: /admin Can be used for administering data sourcers, groups, parsers.

exchange-rates-server's People

Contributors

fycth avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.