diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:19:36 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:19:36 +0200 |
commit | dac4c5bb5389b123a046d0e861443e124dc0e059 (patch) | |
tree | c62e3d5ebfd6ce77bf4657f27962bf845d119977 /lib/api | |
parent | 99d7b3ea0c7b97820ee25f12c4b77acc676a72b7 (diff) | |
download | gitlab-ce-dac4c5bb5389b123a046d0e861443e124dc0e059.tar.gz |
Fix invalid curl command
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/lint.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/api/lint.rb b/lib/api/lint.rb index 0af132803ba..8a7ced2d34d 100644 --- a/lib/api/lint.rb +++ b/lib/api/lint.rb @@ -1,11 +1,12 @@ module API class Lint < Grape::API - desc 'Validation of .gitlab-ci.yml content' - params do - requires :content, type: String, desc: 'Content of .gitlab-ci.yml' - end namespace :ci do + desc 'Validation of .gitlab-ci.yml content' + params do + requires :content, type: String, desc: 'Content of .gitlab-ci.yml' + end + post '/lint' do error = Ci::GitlabCiYamlProcessor.validation_message(params[:content]) |