Repository navigation
Document application-local CRUD with validated writable fields - #49
Merged
Merged
Conversation
Danger ReportNo issues found. |
dblock
force-pushed
the
docs/crud-recipe-8
branch
2 times, most recently
from
October 27, 2026 10:44
8ce2af5 to
0041dce
Compare
This was referenced Oct 27, 2026
Closed
dblock
force-pushed
the
docs/crud-recipe-8
branch
from
October 27, 2026 11:35
0041dce to
f38efd1
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
docs/crud-recipe-8
branch
from
October 27, 2026 11:38
f38efd1 to
7e497a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #8.
Keep CRUD application-local rather than adding a persistence API or globally patching endpoints. Provide a complete recipe with separate input/output decorators, Grape parameter validation, filtered writable fields, partial updates, and explicit save!/destroy! calls. Explain authorization, ORM adaptation, and application-owned error mapping.
Use resource-oriented names:
ProductInputRepresenter,ProductOutputRepresenter, andProductsAPI. Apply the corresponding naming cleanup to the parameter example introduced by the now-merged #48, keeping the standalone examples and their scoped test constants consistent. Rebased onto current master; the legacy JSON compatibility prerequisite is already upstream.Execute the exact README examples in actual HTTP requests. CRUD cases verify create/update/delete, readonly and undeclared fields, partial updates, invalid input, and propagated persistence failures. The complete suite and lint pass on Ruby 2.7/Grape 1.8 and Ruby 4/Grape 4.
AI-authored on behalf of @dblock.