CurrencyController

@RestController
@Profile(value = "!docs")
@RequestMapping(value = "/api/currency")
open class CurrencyController

Constructors

Link copied to clipboard
@Autowired
constructor(currencyService: CurrencyService)

Functions

Link copied to clipboard
@PermitAll
@GetMapping(value = "/all")
open fun getAll(): ResponseEntity<DisplayCurrencyListResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/all", params = "offset")
open fun getAllWithOffset(@RequestParam(value = "offset", defaultValue = "0") offset: Int): ResponseEntity<DisplayCurrencyListResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/performance/{currencyCode}")
open fun getCurrencyPerformance(@PathVariable currencyCode: String): ResponseEntity<PerformanceRatingResponse>
Link copied to clipboard
@PermitAll
@PostMapping(value = "/value")
open fun getCurrencyValue(@RequestBody assetValueRequest: AssetValueRequest): ResponseEntity<AssetValueResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/display/{code}")
open fun getDisplayCurrency(@PathVariable(value = "code") code: String): ResponseEntity<DisplayCurrencyResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/history/{code}")
open fun getHistory(@PathVariable(value = "code") code: String, @RequestParam(value = "hours", defaultValue = "24") hours: Int, @RequestParam(value = "intervalSeconds", defaultValue = "60") intervalSeconds: Int): ResponseEntity<List<TimeValueResponse>>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/list")
open fun getList(@RequestParam(value = "withCode", defaultValue = "false") withCode: Boolean): ResponseEntity<CurrencyNamesResponse>