Merge branch 'clean-api-params' into 'master'
Parameter already enforced via grape See merge request !8344
This commit is contained in:
commit
6892216f5f
1 changed files with 0 additions and 2 deletions
|
@ -69,8 +69,6 @@ module API
|
||||||
optional :created_at, type: String, desc: 'The creation date of the note'
|
optional :created_at, type: String, desc: 'The creation date of the note'
|
||||||
end
|
end
|
||||||
post ":id/#{noteables_str}/:noteable_id/notes" do
|
post ":id/#{noteables_str}/:noteable_id/notes" do
|
||||||
required_attributes! [:body]
|
|
||||||
|
|
||||||
opts = {
|
opts = {
|
||||||
note: params[:body],
|
note: params[:body],
|
||||||
noteable_type: noteables_str.classify,
|
noteable_type: noteables_str.classify,
|
||||||
|
|
Loading…
Reference in a new issue