You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/app/api/mobile/apis/blog_comments.rb

18 lines
349 B

#coding=utf-8
module Mobile
module Apis
class BlogComments< Grape::API
resources :blog_comments do
desc "get special topic"
get ':id' do
blog = BlogComment.find params[:id]
present :data, blog, with: Mobile::Entities::BlogComment
present :status, 0
end
end
end
end
end