13 lines
292 B
Ruby
13 lines
292 B
Ruby
class APIGeoTestController < ActionController::Base
|
|
def regions
|
|
render json: [{ nom: 'Martinique' }]
|
|
end
|
|
|
|
def departements
|
|
render json: [{ nom: 'Aisne', code: '02' }]
|
|
end
|
|
|
|
def communes
|
|
render json: [{ nom: 'Ambléon', code: '01006', codesPostaux: ['01300'] }]
|
|
end
|
|
end
|