8000 GitHub - forwardyoung/simple-test
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

forwardyoung/simple-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Back-end Test

Build and Run main.go

go mod tidy

go build

./simple-test

Test call localhost:8080/ping using curl, PostMan, and so on.

Find exchange rate

  1. Implement a simple Restful API server.

  2. Return a current exchange rate, USD -> KRW.

Path

[GET] /exchange/:code

In this case, code is USD.

Response

{
   "rate": 1400.00
}
  1. Return a exchange rate of 2024-11-01, USD -> KRW (GET /exchange/:code?date=2024-11-01).

  2. Return all currency code and exchange rate for KRW if the rate is greater than or equal to 1000 (GET /exchange?min=1000).

  3. Return the number of currency if exchange rate for KRW is greater than or equal to 1000 (GET /counting/exchange?min=1000).

Caution

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0