Bo
Schemas OpenAPI
interface MapLocationAdminShortSchema {
id: string
name: string
type: string
countryId?: string
qualityOfLifeIndex: number
latitude: number
longitude: number
createdAt: Date
updatedAt: Date
}interface MapLocationAdminSchema extends MapLocationAdminShortSchema {
cities: MapLocationAdminShortSchema[]
currency: {
id: string
name: string
symbol: string
rate: string
collectedAt: Date
}
mapIndices: [
{
id: string
type: string
name: string
lowestValue: number
highestValue: number
averageValue: number
},
]
}Routes appelées
PREFIX: https://api.staging.pilot-student.creatiwity.net/bo
GET /map-locations?type=<COUNTRY | CITY>
Réponse
{
"code": 200,
"body": MapLocationAdminShortSchema[]
}GET /map-locations/:id
Paramètres de la route
interface MapLocationRequestParams {
id: string // l'identifiant ISO du pays. ex: FR
}Réponse
{
"code": 200,
"body": MapLocationAdminSchema[]
}