这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: automatic PATCH operation generation #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2022
Merged

Conversation

danielgtaylor
Copy link
Owner

Adds optional automatic PATCH operation generation when a GET and a PUT are available for a resource. Supports conditional requests and both JSON Merge Patch & JSON Patch standards out of the box.

Underneath the hood it literally just calls the GET, applies the patch to the returned data, and then submits the PUT with that updated data. There are no optimizations made, but this makes it easy for clients to make small updates to large resources in a standardized way.

@danielgtaylor danielgtaylor added the enhancement New feature or request label Sep 10, 2022
@danielgtaylor danielgtaylor merged commit ceef130 into main Sep 12, 2022
@danielgtaylor danielgtaylor deleted the auto-patch branch September 12, 2022 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant