gregschmit / rails-rest-framework Goto Github PK
View Code? Open in Web Editor NEWA framework for DRY RESTful APIs in Ruby on Rails.
Home Page: https://rails-rest-framework.com
License: MIT License
A framework for DRY RESTful APIs in Ruby on Rails.
Home Page: https://rails-rest-framework.com
License: MIT License
Issuing an update to a record via PUT behaves like PATCH, updating only the sent properties instead of completely replacing the record as would be expected. This mostly manifests when a nullable field was not originally null, but is desired to be nulled, and a PUT with new property values is sent without a null for that property.
Potentially consider a way to make PUT behave as expected, or indicate that PUT behaves like PATCH
Also for pagination, perhaps we should include next/prev links?
There is already a branch for this, but basically I want to dynamically construct ::Channel
classes on each controller to allow subscribing to updates for a particular collection, and interacting with controller endpoints via action cable (or anycable).
Should be available, but I think I hardcoded index
action, but not show
, which should be available for singleton controllers because no path params are required.
Right now, we include all associations in the model controller mixin. Rather, we should allow filters to include what they need to avoid including associations unnecessarily.
Probably by a designated column, but perhaps by specifying the target column, but then the issue is whether the user should have access to that column. So probably just by a designated column (perhaps name
by default?).
For most CRUD it's just the default fields, but like for DELETE it should be nothing, and then for extra fields it should just be fields defined in their config... probably?
Either way, need to be able to say "for this extra action, here are the params that are acceptable".
Consider adding ability to create, update, or delete multiple records at once. Perhaps there is a configuration option to determine if this is done using efficient SQL operations without callbacks/validation, or less efficient ORM operations with callbacks/validation.
When there is a list of valid values, add ability to annotate human-readable labels for those values.
We should support delegating extra actions to the underlying model for the ModelControllerMixin
. Collection actions can be delegated to the model, and member actions can be delegated to records. We should either enable this via configuration or provide a configuration option in the extra_actions
/extra_member_actions
configuration API.
We currently support sending fields
metadata, but we should also communicate the available actions (including and making distinction for member actions) on a controller. We should also coerce more validations to top-level information on the fields
metadata.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.