I'm using grape for restful service. As I know, :resource
will define a path in url. For example:
module Sample
module V1
module Order
class GetCheckInListApi < ApplicationApi
resource :check_in_list do
get root: :data do
# business code here
end
end
end
end
end
end
The url for example, will be: localhost:8000/api/v1/check_in_list
. I want the url should be: localhost:8000/api/v1/check_in/list
. How can I do in Grape
?
Thanks