Question

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!

Was it helpful?

Solution

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.

OTHER TIPS

Yes. Grape works on Rack. See https://github.com/dblock/grape-on-rack for an example.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top