demarches-normaliennes/app/controllers/api_geo_test_controller.rb
2024-08-22 09:26:48 +02:00

15 lines
323 B
Ruby

# frozen_string_literal: true
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