Skip to content

Commit

Permalink
Merge pull request ruby-grape#672 from qqshfox/patch-2
Browse files Browse the repository at this point in the history
fix syntax in README.md
  • Loading branch information
dblock committed Jul 4, 2014
2 parents de457c6 + 7b30fad commit 06de7f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1360,9 +1360,10 @@ module API
class Statuses < Grape::API
version 'v1'

desc 'Create a status', {
desc 'Create a status'
params do
requires :all, except: [:ip], using: API::Entities::Status.documentation.except(:id)
}
end
post '/status' do
Status.create! params
end
Expand Down

0 comments on commit 06de7f8

Please sign in to comment.