{"repo":"gregschmit/rails-rest-framework","free":true,"listed":false,"github":"https://github.com/gregschmit/rails-rest-framework","clone":"git clone https://github.com/gregschmit/rails-rest-framework.git","description":"A framework for DRY RESTful APIs in Ruby on Rails.","language":"Ruby","stars":59,"topics":["rails","api","rest","restful-api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Rails REST Framework A framework for DRY RESTful APIs in Ruby on Rails. The Problem : Building controllers for APIs usually involves writing a lot of redundant CRUD logic, and routing them can be obnoxious. Building and maintaining features like ordering, filtering, and pagination can be tedious. The Solution : This framework implements browsable API responses, CRUD actions for your models, and features like ordering/filtering/pagination, so you can focus on your application logic. Website/Guide: rails-rest-framework.com Demo API: rails-rest-framework.com/api/demo Source: github.com/gregschmit/rails-rest-framework YARD Docs: rubydoc.info/gems/rest framework Installation Add this line to your application's Gemfile: And then run: Quick Usage Tutorial To add REST framework features to a controller, include the Controller module: Note: Configuration assignments are local by default — self.x = value sets x on that controller alone and does not propagate to subclasses. To share a setting with every descendant (pagination, filter backends, serializer config, and so on), wrap the assignment in a propagate block on a base controller. Here is what the directory structure might look like for resource controllers: Serving the Base API Index A controller without a model renders its index content at its index path, which serves as the API root. Because declared actions are local by default (they don't propagate to subclasses), you can serve the index — and any root-specific extra actions —","default_branch":null,"files":null,"tree":[],"storefront":"/r/gregschmit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gregschmit/rails-rest-framework/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}