go-example

command module
v0.0.0-...-508a185 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 11 Imported by: 0

README

Task:

Create a stand alone HTTP service written in Golang that returns the current foreign exchange rates within the hour.

Specifics:

Openexchange to be used as the source of forex data and retrieved rates should be cached for an hour at a time. You are free to use any version of Golang above 1.5.

Endpoints that must be implemented:

All endpoints should return JSON

GET /current_rates

  • Returns the list of latest rates retrieved from Openexchange.

GET /current_rates?currency=<currency_code>

  • Returns the current rate for the desired currency code e.g /current_rates?currency=USD

Things you may need:

To run

make run should start the web application at port 8080

To test

make test should test the web application

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL