geofence
geofence copied to clipboard
Add support for AdminRules to Rest Batch services
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 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
Thanks for your point @etj I've changed the issue name to address the addition of admin rule support to REST Batch