Commit graph

22 commits

Author SHA1 Message Date
Robert Schilling
6a2ee0968e API: Use defined project requirements 2017-08-31 14:57:47 +02:00
Robert Schilling
e80313f9ee Conditionally destroy a ressource 2017-08-28 16:40:25 +02:00
Robert Schilling
998afa5f74 API: Respect the 'If-Unmodified-Since' for delete endpoints 2017-08-28 16:40:25 +02:00
Dmitriy Zaporozhets
6b8ad689da
Update grape gem
New version of the gem returns 200 status code on delete with content
instead of 204 so we explicitly set status code to keep existing
behavior

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-20 16:33:18 +03:00
Dongqing Hu
6dd7695444 Labels support color names in backend 2017-03-29 11:45:15 +00:00
Rémy Coutable
63360adeae
Add requirements: { id: %r{[^/]+} } for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Robert Schilling
86c58687b2 Return 204 for delete endpoints 2017-02-28 08:32:38 +01:00
Robert Schilling
01ea65e0e9 Paginate all endpoints that return an array 2017-02-16 15:32:01 +01:00
Robert Schilling
76bd09326f Use declared_params helper in API 2016-11-14 15:22:06 +01:00
Robert Schilling
76c237460a Ability to update labels priority via API 2016-11-07 09:26:57 +01:00
Rémy Coutable
d38dd3c4ca
Merge remote-tracking branch 'origin/labels-api'
See merge request !7014

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-04 16:43:28 +01:00
Robert Schilling
21666dbe11 Grapify the labels API 2016-10-24 16:52:34 +02:00
Douwe Maan
64e2d884d6 Return conflict error in label API when title is taken by group label 2016-10-20 12:15:29 +02:00
Douglas Barbosa Alexandre
9b28823854 List all available labels to the project on the labels API 2016-10-19 14:58:26 -02:00
Ahmad Sherif
0c22698bd4 Add API endpoints for un/subscribing from/to a label
Closes #15638
2016-05-12 22:48:09 +02:00
Mariusz Jachimowicz
c8be7f1cf0 api - expose label description 2016-03-24 18:44:52 +00: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
Jacob Vosmaer
6dc24e3bcf Merge pull request #7527 from Razer6/api_labels_return_code
API: Fix labels return code
2014-08-18 17:16:32 +02:00
Robert Schilling
4ca3f64719 Fix labels return code 2014-08-18 00:25:49 +02:00
Dmitriy Zaporozhets
6063a1e6c1
Add labels api authorization. Update permission doc
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-08-15 11:59:19 +03:00
Robert Schilling
cf3ba0209d Update labels via API 2014-08-13 12:29:03 +02:00
Robert Schilling
9284038dbe Add, delete labels via API 2014-08-13 12:28:19 +02:00