Robert Schilling
b2f48d8c46
API: Return 404 if user does not have access to group
2016-04-13 11:11:09 +02:00
Zeger-Jan van de Weg
1d77822816
minor improvements and fixed specs
2016-03-19 21:24:05 +01:00
Michi302 and Rémy Coutable
c41a8be8d2
Fix add_pagination_headers to keep request parameters in Link header
2016-02-02 15:26:29 +01:00
Kamil Trzcinski
95d2f0fb51
Fix CI runner version not being properly updated when asking for a build
...
Due to broken implementation of attribute_for_keys the runner information was not updated correctly.
This MR adds test to check that such scenario will never happen again.
2016-01-27 12:04:54 +01:00
Josh Frye
11797df1af
Change 'public' flag to more robust 'visibility' query.
2016-01-19 09:57:00 -05:00
Josh Frye
10669097fa
Add public params to GET /projects api. Closes #3788
2016-01-19 09:57:00 -05:00
Rémy Coutable
1b08cd811a
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into add-pagination-headers-to-api
2016-01-14 14:23:42 +01:00
Grzegorz Bizon
154b8ceba4
Refactor build artifacts upload API endpoint
2016-01-14 12:48:17 +01:00
Rémy Coutable
3183092ca9
Add pagination headers to already paginated API resources
2016-01-14 12:10:27 +01:00
Kamil Trzcinski
e80e3f5372
Migrate CI::Project to Project
2015-12-11 18:02:09 +01:00
Kamil Trzcinski
db3213fc1c
Use normal file upload mechanism to upload artifacts
2015-11-10 12:51:51 +01:00
Kamil Trzcinski
445cdb7579
Move tmp artifacts to shared/artifacts/tmp/. Check for GitLab-Workhorse now
2015-11-10 12:51:51 +01:00
Kamil Trzcinski
d0e3e823a2
Implement Build Artifacts
...
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Jason Lee
3d613fe1e8
Fix API::APIHelpers -> API::Helpers;
...
Rails Autoload find file to require is use , APIHelpers -> api_helpers.rb, not helpers.rb;
2015-10-23 11:42:57 +08:00
Guilherme Garnier
59d0263bc8
Fix rubocop warnings in lib
2015-10-03 01:29:58 -05:00
Valery Sizov
22bf844869
fix specs. Stage 3
2015-09-15 13:50:24 +03:00
Valery Sizov
910bf96ec3
fix specs. Stage 2
2015-09-14 18:14:17 +03:00
Kirilll Zaitsev
263abda3fd
Drone CI service
2015-09-02 05:52:16 +03:00
Jakub Jirutka
ed3298fc01
Allow to configure gitlab_shell_secret location
2015-05-16 21:46:06 +02:00
jubianchi
2c544d43c8
Query issues, merge requests and milestones with their IID through API
2015-05-02 10:44:52 +02:00
Dmitriy Zaporozhets
6ec8ff069c
Enable more rubocop style checks
2015-03-24 18:28:10 -07:00
Vinnie Okada
ad0ca0499a
Merge branch 'master' into fix-restricted-visibility
...
Conflicts:
db/schema.rb
2015-03-14 10:49:11 -06:00
Vinnie Okada
285c534185
Allow admins to override restricted visibility
...
Allow admins to use restricted visibility levels when creating or
updating projects.
2015-03-08 16:10:05 -06:00
Jörg Thalheim
9f089ac48c
use constant-time string compare for internal api authentication
...
Ruby str_equal uses memcmp internally to compare String.
Memcmp is vunerable to timing attacks because it returns early
on mismatch (on most x32 platforms memcmp uses a bytewise comparision).
Devise.secure_compare implements a constant time comparision instead.
2015-03-06 20:06:26 +01:00
Dmitriy Zaporozhets
558dd81197
Improve broadcast message API
2015-02-18 14:58:20 -08:00
Vinnie Okada
b0dacc8eb0
Edit group members via API
...
Add an API endpoint to update the access level of an existing group
member.
2015-02-11 18:53:07 -07:00
Dmitriy Zaporozhets
bdfb349ff7
Refactor and improve sorting objects in API for projects, issues and merge requests
2015-02-05 22:00:54 -08:00
Dmitriy Zaporozhets
dc9bf32420
Merge pull request #8723 from jubianchi/api-groups-path
...
Access groups using path
2015-02-03 10:57:27 -08:00
jubianchi
4e97f26649
Acces groups with their path in API
2015-02-03 13:42:38 +01:00
Dmitriy Zaporozhets
e890582681
Rubocop enabled for: Use spaces inside hash literal braces
2015-02-02 20:36:54 -08:00
Marin Jankovski
7fa80b5bd0
Update branch api not found messages to 'Branch not found'.
2014-12-30 13:37:14 +01:00
Valery Sizov
e41dadcb33
Doorkeeper integration
2014-12-24 15:38:07 +02:00
Valery Sizov
b5763e91cd
add gitlab-shell identification
2014-10-15 20:03:25 +03:00
Ciro Santilli
2e9f5de868
Add parenthesis to function def with arguments.
2014-10-03 09:18:46 +02:00
jubianchi
998cd3cb63
Improve error reporting on users API
...
* users (#6878 , #3526 , #4209 ): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username
* MRs (#5335 ): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks
* issues
* labels
* projects
2014-09-16 01:25:24 +02:00
jubianchi
7ad93ab250
Improve labels validation and expose error messages
2014-08-20 12:09:19 +02:00
Robert Schilling
cbc90565b5
Do label validation for issues/merge requests API
2014-08-14 10:17:52 +02:00
Sasha Joseph
37c4ba6f8d
Add an option to GET /projects in the GitLab API to exclude archived projects
2014-07-28 12:48:13 -04:00
Dmitriy Zaporozhets
8fee5a0572
Make app works with strong params
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-26 23:24:17 +03:00
Dmitriy Zaporozhets
a7be3dfa30
Remove set of thread variables
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-10 17:51:49 +03:00
Jacob Vosmaer
02b85fd236
Check user access status in API for current_user
2014-05-15 10:22:59 +02:00
Dmitriy Zaporozhets
33a00ceeea
Create branch via API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-01 10:39:53 +03:00
Dmitriy Zaporozhets
046fa9bdb1
Merge pull request #5469 from NARKOZ/api-pagination-headers
...
add 'Link' header for API response
2014-03-31 13:46:57 +03:00
Dmitriy Zaporozhets
a9f2903e86
Change project lookup order for api
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-03-14 15:58:52 +02:00
skv
a3f645ef51
Remove deprecated finders
2014-01-19 23:39:56 +04:00
Dmitriy Zaporozhets
9d79d6e152
Make sure private_token for API is a string
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-08 18:49:38 +02:00
Nihad Abbasov
0678b8a426
add 'Link' header for API response
2013-10-29 13:41:20 +04:00
Dmitriy Zaporozhets
03dba1fd42
Merge pull request #5344 from amacarthur/thread-variable-fix
...
Fixing unsafe use of Thread.current variable :current_user
2013-10-16 23:30:44 -07:00
Nihad Abbasov
12420a2256
refactor by_username_or_id
2013-10-16 22:31:46 +05:00
Nihad Abbasov
e09cc195a7
fix variable name
2013-10-16 22:28:39 +05:00