Add carto import api

takes a FeatureCollection to import and returns an augmented champ FeatureCollection
This commit is contained in:
Paul Chavard 2020-05-07 12:06:42 +02:00
parent f4677a0907
commit 4f2e504cc2
3 changed files with 45 additions and 4 deletions

View file

@ -123,6 +123,7 @@ Rails.application.routes.draw do
get ':champ_id/carte/features', to: 'carte#index', as: :carte_features
post ':champ_id/carte/features', to: 'carte#create'
post ':champ_id/carte/features/import', to: 'carte#import'
patch ':champ_id/carte/features/:id', to: 'carte#update'
delete ':champ_id/carte/features/:id', to: 'carte#destroy'