kurenn / sabisu-rails

Simple and powerful engine for exploring your Rails api application
MIT License
127 stars 29 forks source link

Add support for post requests #1

Closed kurenn closed 10 years ago

kurenn commented 10 years ago

As we have access to Rails models, it should be helpful to get the attributes to perform a post request on a model.

A fast and raw idea is to read all of the attributes and assume all of them can be mass-assigned the other is set it up on the configuration file, under the resources array:

SabisuRails.resources = [
                   :products => {:tile, :price},
                   :users => {:email, :username}
]

I'm still thinking....

kurenn commented 10 years ago

this is solved with 6ee1b98841007299e9f7022c6eae80687b4a6832