Generating API using Grape in the Rails application