Yes, there are no restrictions. REST is an agnostic architectural style language. The language you have chosen to implement the interface does not affect the end result.
Of course, instead of starting from scratch, you can use the existing Ruby infrastructure, such as Sinatra . But if you want to completely control your request at a very low level, Rack alone is a good choice.
source share