PUBLIC
Schemas OpenAPI
CurrencyRatePublicShema
// Interface générique, plus légère qu'un schema OpenAPI, plus facile a comprendre
interface CurrencyRatePublicShema {
id: string //uuid
name: string
symbol: string
rate: number // float, ex: 1,20% EUR
locations: MapLocation[]
collectedAt: Date
}Nos routes API
PREFIX: https://api.staging.pilot-student.creatiwity.net/public
GET {PREFIX}/currency-rates
Réponse
{
"code": 200,
"body": CurrencyRatePublicShema[]
}