diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-03-02 17:44:15 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-03-02 17:48:00 +0100 |
commit | 5c1aa5fb65ec7474956e6972e40b04b3a967c338 (patch) | |
tree | 9588d71165d0cbc57e56da1c123a201c9d2a5c8e /lib/api | |
parent | 1bbf2c2cd16140aa95bbf93368209b16795172bd (diff) | |
download | gitlab-ce-5c1aa5fb65ec7474956e6972e40b04b3a967c338.tar.gz |
Add some fixes and refactoring after review
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/runner.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb index 23db32c9b1f..caa330c7234 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -176,6 +176,7 @@ module API end desc 'Upload artifacts for job' do + success Entities::JobRequest::Response http_codes [[201, 'Artifact uploaded'], [400, 'Bad request'], [403, 'Forbidden'], @@ -186,7 +187,7 @@ module API requires :id, type: Integer, desc: %q(Job's ID) optional :token, type: String, desc: %q(Job's authentication token) optional :expire_in, type: String, desc: %q(Specify when artifacts should expire) - optional 'file', type: File, desc: %q(Artifact's file) + optional :file, type: File, desc: %q(Artifact's file) optional 'file.path', type: String, desc: %q(path to locally stored body (generated by Workhorse)) optional 'file.name', type: String, desc: %q(real filename as send in Content-Disposition (generated by Workhorse)) optional 'file.type', type: String, desc: %q(real content type as send in Content-Type (generated by Workhorse)) |