We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See https://github.com/dblock/grape-with-roar/blob/765b6fc0c117e70546161ced37da86cc0e18a8d4/api/extensions/crud_extension.rb, a simple CRUD extension that lets you write API crud in a much more elegant way.
spline = create Acme::Models::Spline, with: Acme::Api::Presenters::SplinePresenter, from: params[:spline] present spline, with: Acme::Api::Presenters::SplinePresenter
spline = Acme::Models::Spline.find(params[:uuid]) update spline, with: Acme::Api::Presenters::SplinePresenter, from: params[:spline]
spline = Acme::Models::Spline.find(params[:uuid]) delete spline, with: Acme::Api::Presenters::SplinePresenter
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See https://github.com/dblock/grape-with-roar/blob/765b6fc0c117e70546161ced37da86cc0e18a8d4/api/extensions/crud_extension.rb, a simple CRUD extension that lets you write API crud in a much more elegant way.
create
update
delete
The text was updated successfully, but these errors were encountered: