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!
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.
Yes. Grape works on Rack. See https://github.com/dblock/grape-on-rack for an example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.