You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rdoc
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
Grape is a REST-like API micro-framework for Ruby. It is built to complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily provide APIs. It has built-in support for common conventions such as multiple formats, subdomain/prefix restriction, and versioning.
6
6
7
-
class Twitter < Grape::Base
7
+
class Twitter::API < Grape::Base
8
8
subdomain 'api'
9
9
version '1'
10
10
formats :xml, :json
@@ -30,6 +30,12 @@ Grape is a REST-like API micro-framework for Ruby. It is built to complement exi
30
30
end
31
31
end
32
32
33
+
class Twitter::API::User < Grape::Resource::ActiveRecord
0 commit comments