geofence icon indicating copy to clipboard operation
geofence copied to clipboard

Add support for AdminRules to Rest Batch services

Open taba90 opened this issue 2 years ago • 2 comments

As per the title the new functionality aims to allow to send post requests with list of rules and admin rules to GeoFence. The insertion will be executed in a single transaction so that either all rules are correctly inserted either none if some rule in the list is invalid.

taba90 avatar Jul 14 '22 08:07 taba90

@taba90 It's implemented since long

  • Here the API definition: https://github.com/geoserver/geofence/blob/3.5.x/src/services/modules/rest/api/src/main/java/org/geoserver/geofence/services/rest/RESTBatchService.java
  • Here the doc: https://github.com/geoserver/geofence/wiki/GeoFence-REST-API#batch-operations

You may want to simply expand the current implementation to include operations for the AdminRules:

https://github.com/geoserver/geofence/blob/fd847053e923e8a341f23e079e9d16cce51c48d6/src/services/modules/rest/impl/src/main/java/org/geoserver/geofence/services/rest/impl/RESTBatchServiceImpl.java#L64

etj avatar Jul 14 '22 17:07 etj

Thanks for your point @etj I've changed the issue name to address the addition of admin rule support to REST Batch

taba90 avatar Jul 18 '22 07:07 taba90