Example of useΒΆ

  • TERRA_GEOCRUD provide its own settings url to terralego apps via

example:

/api/settings

{
  'CRUD': '/api/crud/settings/'
}

Settings provide default config values, and formatted list of crud group and views, ready to be displayed in frontend left menu.

  • There are 4 endpoint in GEOCRUD API:
::
settings/ -> get ordered menu with views classified by group or not, and basic map settings groups/ -> manage groups of CRUD views views/ -> manage CRUD views (a view creation create its associated layer) template/<template_pk>/render/<pk>/ -> fill a template with a feature
  • A command is available to create default views for each existing layer
./manage.py create_default_crud_views
  • START GUIDE
  • First, you need to create crud views for your geostore layers with the command or the admin.
  • These views can be grouped, and will be listed by the frontend api
  • Then, you can customize default layer-schema by providing your own property groups, which will groups properties as json schema nested objects.

## ADMIN

  • Some classes are provided to help you to manage Crud views / groups / layers and feature through django admin.
  • You need to register your wanted ModelAdmin in your project