feat: implement attachment CRUD operations for FeatureServer (#13) #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements comprehensive attachment management functionality for the FeatureServer REST API, addressing Issue #13. The implementation follows Esri GeoServices REST API specification and provides full CRUD operations for file attachments.
Changes Made
Domain Models
Storage Implementation
REST API Endpoints
GET /rest/services/{serviceId}/FeatureServer/{layerId}/queryAttachmentsPOST /rest/services/{serviceId}/FeatureServer/{layerId}/addAttachmentPOST /rest/services/{serviceId}/FeatureServer/{layerId}/updateAttachmentPOST /rest/services/{serviceId}/FeatureServer/{layerId}/deleteAttachmentsGET /rest/services/{serviceId}/FeatureServer/{layerId}/{featureId}/attachments/{attachmentId}Validation & Security
Testing
Architecture Compliance
✅ Dependency Flow: Core ← Postgres ← Server (correct direction)
✅ API Pattern: Minimal APIs (no controllers)
✅ Encapsulation: Infrastructure types marked internal
✅ Documentation: All public APIs documented
✅ Testing: 100% endpoint coverage with integration tests
✅ Error Handling: Esri-compatible error responses
Testing Results
Related Issues
Closes #13
Checklist