Skip to content

Add UpdateFeature (PATCH) operation with updatable field - #56

Open
bpescato-amazon wants to merge 1 commit into
mainfrom
add-update-feature-operation
Open

Add UpdateFeature (PATCH) operation with updatable field#56
bpescato-amazon wants to merge 1 commit into
mainfrom
add-update-feature-operation

Conversation

@bpescato-amazon

Copy link
Copy Markdown
Contributor
  • Add PATCH operation on Feature resource (UpdateFeature) following the same pattern as UpdateConnection: full Feature body + optional updateMask
  • Add read-only 'updatable' boolean field to Feature schema (optional, defaults to false), allowing providers to declare update support
  • Document 405 METHOD_NOT_ALLOWED response for non-updatable features
  • Update FeatureType enum description to document updatability per type (FEATURE_TYPE_L3_BASE: NOT updatable)

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Add PATCH operation on Feature resource (UpdateFeature) following the
  same pattern as UpdateConnection: full Feature body + optional updateMask
- Add read-only 'updatable' boolean field to Feature schema (optional,
  defaults to false), allowing providers to declare update support
- Document 405 METHOD_NOT_ALLOWED response for non-updatable features
- Update FeatureType enum description to document updatability per type
  (FEATURE_TYPE_L3_BASE: NOT updatable)
The type of feature.

Each feature type documents whether it supports updates via UpdateFeature:
- FEATURE_TYPE_L3_BASE: NOT updatable. Primary feature used to connect

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would argue we choose one of the boolean, or this documentation. If we're saying L3_BASE is never updateable (which I do agree with), then I'd rather just document the 405 response on PATCH if it's used on a feature type that doesn't support updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants