Skip to content
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

PATCH request handler in AdminApiController and RepositoryManager #56

Merged
merged 5 commits into from
Feb 3, 2022

Conversation

TasneemSaeed
Copy link
Contributor

Added a patch action to be used in controllers that extend AdminApiController .

  • a macro was implemented to add the feature to the base Routing class.
  • it can be enabled/disabled at config/mongez.php file through "admin.patchable" bool attribute.
  • patch() method was added to the base repository manager.
  • PATCH request will force all the fields that are not added in const array PATCHABLE_DATA of each repository to be ignored while editing the record.

@hassanzohdy hassanzohdy merged commit 86c2c83 into hassanzohdy:master Feb 3, 2022
@hassanzohdy
Copy link
Owner

PR is approved, thanks for your efforts

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.

None yet

2 participants