Reputation: 21577
i have a question regarding Grape for building an API-only rails app. As I read in the github docs, Grape can be mounted as an API for an existing rails app. Is it possible to write a API-only app with it? Am I right, that I don't need rails controllers any longer when using Grape?
thanks in advance!
Upvotes: 3
Views: 1278
Reputation: 4770
Yes. Grape works on Rack. See https://github.com/dblock/grape-on-rack for an example.
Upvotes: 0
Reputation: 1341
You are right.
Also, if I am not mistaken, you don't even need Rails at all. Grape is a micro-framework which can run standalone. If you have plans to expand however and incorporate active-record/model etc than you could mount Grape and expand at your own pace.
Upvotes: 2