go mod tidy
go build
./simple-test
Test call localhost:8080/ping
using curl, PostMan, and so on.
-
Implement a simple Restful API server.
-
Return a current exchange rate, USD -> KRW.
Path
[GET] /exchange/:code
In this case, code is USD.
Response
{
"rate": 1400.00
}
-
Return a exchange rate of 2024-11-01, USD -> KRW (GET /exchange/:code?date=2024-11-01).
-
Return all currency code and exchange rate for KRW if the rate is greater than or equal to 1000 (GET /exchange?min=1000).
-
Return the number of currency if exchange rate for KRW is greater than or equal to 1000 (GET /counting/exchange?min=1000).
- The time limit is 40 minutes.
- You can search for it, but please show me the screen you search for.
- https://freecurrencyapi.com
- API KEY: fca_live_FtBXLKYTjmeVMXrF7tpU9SpxD5OoEQKSGffFC2y7