@RestController
@RequestMapping("/api/exchange")
public class ExchangeController
extends Object
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExchangeController
public ExchangeController()
-
Method Details
-
getExchangeRates
@GetMapping("/{currency}")
public org.springframework.http.ResponseEntity<List<MeedPrice>> getExchangeRates(@PathVariable(name="currency")
Currency currency,
@RequestParam(name="from",required=true) @DateTimeFormat(iso=DATE)
LocalDate fromDate)