Skip to content

Commit 7b30fad

Browse files
committed
fix syntax in README.md
The `requires` statement should be in a `params` block according to ruby-grape#560.
1 parent 022bec2 commit 7b30fad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,9 +1360,10 @@ module API
13601360
class Statuses < Grape::API
13611361
version 'v1'
13621362

1363-
desc 'Create a status', {
1363+
desc 'Create a status'
1364+
params do
13641365
requires :all, except: [:ip], using: API::Entities::Status.documentation.except(:id)
1365-
}
1366+
end
13661367
post '/status' do
13671368
Status.create! params
13681369
end

0 commit comments

Comments
 (0)