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
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
Timothy Andrew
6384bf7a88
Implement review comments from @dbalexandre
...
- Typo in docs
- Newline between test/expectation in `api/issues_spec`
- Use `find_by` instead of `reference_by` in the structure defining awardables
2017-03-07 13:56:00 +05:30
Timothy Andrew
70584e6925
Migrate the AwardEmoji API to use merge_request_iid
and issue_iid
...
- Instead of `merge_request_id` and `issue_id`
- The API also deals with `snippet_id`, which remains unchanged (since snippets
don't have `iid`s
- Duplicate the original `AwardEmoji` API (and spec) for use with the V3
API, since this is a breaking change.
2017-03-07 13:55:59 +05:30
Robert Schilling
86c58687b2
Return 204 for delete endpoints
2017-02-28 08:32:38 +01:00
Douwe Maan
99a34a52d7
Enable Style/MultilineArrayBraceLayout
2017-02-23 09:32:22 -06:00
Douwe Maan
5c7f9d69e3
Fix code for cops
2017-02-23 09:31:57 -06:00
Douwe Maan
c10064aad5
Enable Style/SpaceInsideBrackets
2017-02-23 09:31:56 -06:00
Douwe Maan
b7d8df503c
Enable Style/MutableConstant
2017-02-23 09:31:56 -06:00
Robert Schilling
01ea65e0e9
Paginate all endpoints that return an array
2017-02-16 15:32:01 +01:00
Robert Schilling
74c8669b0a
Use the pagination helper in the API
2016-12-04 18:11:19 +01:00
Z.J. van de Weg
d291ea97e0
GrapeDSL for Award Emoji endpoints
2016-10-03 10:32:09 +02:00
Z.J. van de Weg
e8dd0d54cb
Fix tests for Snippets toggling awards
...
Also incorporate feedback
2016-09-19 19:53:09 +03:00
Z.J. van de Weg
7475f9d175
API support for Award Emoji on Snippets
2016-09-19 19:47:43 +03:00
Z.J. van de Weg
25004cbc32
Snippets get award emoji! 👍
2016-09-19 19:47:43 +03:00
barthc
7687237237
prevent authored awardable thumbs votes
...
prevent authored awardable thumbs votes
prevent authored awardable thumbs votes
2016-08-28 18:15:55 +01:00
dixpac
e21492b810
Fix not normalized emoji paths
...
* There where path where +1 was stored as +1 not as thumbsup
that was causing problems such as showing thumbsup icon 2 time.
I fixed this to always normalize and store +1 as tumbsup
2016-07-14 08:51:00 +02:00
Grzegorz Bizon
9e211091a8
Enable Style/EmptyLines cop, remove redundant ones
2016-07-01 21:56:17 +02:00
Z.J. van de Weg
05a4a586b5
Add endpoints for award emoji on notes
...
Docs also added.
2016-06-17 21:02:51 +02:00
Z.J. van de Weg
34558315d9
Sort API endpoints and implement feedback
2016-06-17 20:08:16 +02:00
Z.J. van de Weg
3f88221c2d
Add endpoints for Award Emoji
...
This only supports Issues and MergeRequests right now because of the
consistency of the routes those models provide.
2016-06-17 20:07:17 +02:00