Skip to content

ApplyEdits endpoint with add/update/delete #11

@mikemcdougall

Description

@mikemcdougall

Summary

Implement FeatureServer applyEdits endpoint for CRUD operations.

Tasks

  • Create applyEdits POST endpoint
  • Parse adds array from request
  • Parse updates array from request
  • Parse deletes array from request
  • Implement feature creation logic
  • Implement feature update logic
  • Implement feature deletion logic
  • Generate objectIds for new features
  • Build success/failure response per operation
  • Add validation for input features
  • Add error handling for each operation type
  • Add integration tests for add operations
  • Add integration tests for update operations
  • Add integration tests for delete operations
  • Document applyEdits endpoint

Acceptance Criteria

  • POST /rest/services/{serviceId}/FeatureServer/{layerIndex}/applyEdits
  • adds array creates new features
  • updates array updates existing features by objectId
  • deletes array removes features by objectId
  • Response includes success/failure per operation

Legacy Reference

  • ../Honua.Server/src/protocol/geoservices/Editing/

Test Plan

  • Integration test: add feature returns new objectId
  • Integration test: update feature modifies attributes
  • Integration test: delete feature removes from database

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/L🌳 L: 1-2 days (complex feature, multiple components)enhancementNew feature or requestphase/MVPMVP scopepriority/P3📋 Low priority - nice to have in phase, can be deferred

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions